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

This falls into the third category, "Functions/methods that prefix any number of arguments". That the binary operators "go between" the operands is literally the definition used in the article.



That's my point. That is not a good definition of a binary operator.

A binary operator is simply one that takes two operands, their relative to positions do not matter one bit


Well, I suppose that's one of the definitions; Hillel opted for the other one. :shrug:

I think that he wanted to emphasize the distinction between operators and functions; in your definition, there is no difference between "binary operator" and "function with two arguments". Of course, some languages limit what characters can be used in function names, but that is certainly not universally true.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: