
28 Aug
2003
28 Aug
'03
5:05 a.m.
"Eugene Nonko"
Are there any plans to extend Haskell parser to support prefix and postfix operators? It will be just great for domain-specific languages.
We already have prefix operators, don't we? I.e., regular functions are prefix? One would assume (but one would also be to lazy to try it) that operators (i.e. non-alpha identifiers) could be defined unary, and applied with the parenthesis notation? E.g. (%&/) :: a -> b (%&/) x = ...
It always kind of bothered me that unary minus is special.
I've rather felt that unary minus should go, I almost always end up using "negate" explicitly, anyway. -kzm -- If I haven't seen further, it is by standing in the footprints of giants