On Wed, 2 Mar 2005, Benjamin Franksen wrote:

> There is a good argument for 'distfix' i.e. bracketing operators, IMO. You
> could define your own if_then_else:
>
>       `if cond `then` truebranch `else` falsebranch end`

I would be more happy with

if :: Bool -> a -> a -> a
if True  x _ = x
if False _ y = y

than with parentheses redefinitions as () and [] in C++.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to