Libor Skarvada wrote:
> 
> David Feuer writes:
> > I really don't like the fact that the unary "-" is special in Haskell.
> > I propose that along with infix operators, Haskell support prefix and
> > postfix operators.  The negative function could be renamed to, randomly,
> > %-.
> 
> Mixing prefix or postfix operators with infix operators would make
> expressions like (`operator` operand) or (operand `operator`) ambiguous.
> You would have to introduce a new syntax for operator sections or
> abandon them at all, both of which would be hardly acceptable.
> 
> -- Libor

I disagree.  The operators would share a namespace.  It would probably
require prefix and postfix operators to always have fixity declarations,
though, or else a separate keyword when they are declared.


-- 

  ______________________________
/  David Feuer                  \
|  [EMAIL PROTECTED]         |
|  [EMAIL PROTECTED]                |
\  [EMAIL PROTECTED]          /
  -----------------------------


Reply via email to