Hacker News new | ask | show | jobs
by mikewarot 1983 days ago
When I saw that

f 5, 6;

is interpreted as equivalent to

f(5, 6);

something inside me just snapped.. if you don't have parenthesis, you don't have clear delineation of parameters vs functions, especially when things get nested, or need to be read years later.

1 comments

Then just write it as `f(5, 6);`. That works too.

Tail nesting doesn't need parens, but otherwise you're right, use parens to nest.

As for reading code, rest assured that "buy food" rather than "buy(food)" is something the vast majority of English readers find easy to read, even years later.

That said, if such things make you snap, perhaps it's time to relax and ignore posts about programming languages you don't know. :)