3 ms·
I don't know whether this is reassuring or worrying, but Haskell has long (always?) pursued this strategy of allowing even more flexible operator names. From h
by JadeNB 12y ago
I don't know whether this is reassuring or worrying, but Haskell has long (always?) pursued this strategy of allowing even more flexible operator names. From http://www.haskell.org/onlinereport/lexemes.html http://www.haskell.org/onlinereport/lexemes.html:
> Operator symbols are formed from one or more symbol characters, as defined above …
where 'above' is:
symbol -> ascSymbol | uniSymbol<special | _ | : | " | '>
ascSymbol -> ! | # | $ | % | & | * | + | . | / | < | = | > | ? | @
| \ | ^ | | | - | ~
uniSymbol -> any Unicode symbol or punctuation
- Dewie 12y agoThey go so far that the operator name can even be prefixed by the lexeme (?) for single-line comments (--) :) > (--|) = (+)
- Flow 12y agoMy problem with most overloaded operators is that they too often have no sensible name. When I talk to myself while coding, I have no name to say out loud. I have nothing but a picture, when I try to remember the operator.
- JadeNB 12y agoWhile the names may or may not work for you, this has been considered: http://stackoverflow.com/questions/7746894/are-there-pronounceable-names-for-common-haskell-operators http://stackoverflow.com/questions/7746894/are-there-pronoun... http://stackoverflow.com/questions/3242361/haskell-how-is-pronounced http://stackoverflow.com/questions/3242361/haskell-how-is-pr... I got to this by Googling for the 'fish' operator, to which I vaguely remembered seeing a reference: http://www.reddit.com/r/haskell/comments/c262b/the_fish_operator http://www.reddit.com/r/haskell/comments/c262b/the_fish_oper...
- deleted 12y ago[deleted]