Hacker News new | past | comments | ask | show | jobs | submit login

The distinction isn't between functions and values in general, it's between the function being called and the arguments passed to the function being called. The difference isn't in the things themselves, it's in the role that they play in the specific expression we're reading.



This argument is rather strange. Maybe for people who never interacted with different -fix notations ? Human language binds concepts with arguments in all kinds of direction .. I'd be surprised this is enough to annoy people.


Natural language isn’t precise and a lot is inferred from context. Exact order does often not really matter. In formal languages, however, you want to be as unambiguous and exact as possible, so it makes sense to use syntax and symbols to emphasize when elements differ in kind.

Incidentally, that’s also why we use syntax highlighting. One could, of course, use syntax highlighting instead of symbols to indicate the difference between function and arguments (between operation and operands), but that would interfere with the use of syntax highlighting for token categories (e.g. for literals of different types).


We also alternate between various positions in programming languages, so it's not a matter of formal precision.


Not sure what you mean by “alternate between various positions”.


Prefix for function, infix in expressions, and postfix if you use forth




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: