3 ms·
> And coming up against arbitrary three-four-character combinations people come up with for their operators. Nothing requires that though, it's more of a debat
by masklinn 6y ago
> And coming up against arbitrary three-four-character combinations people come up with for their operators.
Nothing requires that though, it's more of a debatable community habit, similar to the overly abstract or cutesy names.
> At least mainstream languages are usually consistent. A method call is a method call. A structure is a structure. What is this ungodly mess?
Haskell is arguably way more consistent there: "mainstream languages" also have operators, often overloadable, you just can't declare your own operators in most of them.
Haskell simply allows sigils to be used as infix functions, aka binary operators, and furthermore allows those to be used as prefix functions, as well as prefix binary functions to be used infix.
- kazagistar 6y agoThat makes it more consistent to write, but less consistent when reading.