Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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:

> 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


They go so far that the operator name can even be prefixed by the lexeme (?) for single-line comments (--) :)

> (--|) = (+)


My 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.


While the names may or may not work for you, this has been considered:

http://stackoverflow.com/questions/7746894/are-there-pronoun...

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_oper...




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

Search: