3 ms·
>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 backt
by xrange 11y ago
>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/Expressions#Infix_function_calls https://en.wikibooks.org/wiki/Standard_ML_Programming/Expres...
https://wiki.haskell.org/Infix_operator#Using_prefix_functions_with_infix_notation https://wiki.haskell.org/Infix_operator#Using_prefix_functio...
- Jtsummers 11y agoI did mean to mention that, but how about creating postfix operators?
- xrange 11y agoIn 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 http://www.swi-prolog.org/pldoc/man?predicate=op/3