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

>What language allows you...

SML allows you to have an infix function named "P", and Haskell allows something similar, although you have to quote it with backticks and can't use a capital letter to start a function name...

https://en.wikibooks.org/wiki/Standard_ML_Programming/Expres...

https://wiki.haskell.org/Infix_operator#Using_prefix_functio...



I did mean to mention that, but how about creating postfix operators?


In Prolog you have the ability to create new postfix operators. Of course Prolog being a logic language and not a functional language, along with '!' being used for 'cut' opens up another can of worms.

http://www.swi-prolog.org/pldoc/man?predicate=op/3




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

Search: