[Haskell-cafe] Command line prompt templates

Antti-Juhani Kaijanaho antti-juhani at kaijanaho.fi
Fri Nov 24 01:52:18 EST 2006


Donald Bruce Stewart wrote:
> Looks pretty good, though you use 
> 
>     case x :: Bool of
>         True  -> ...
>         False -> ...
> 
> when
>     if x then ... else ...
> 
> would be preferred.

Why?  Personally, I find boolean case to feel better wrt layout and I see
no loss of clarity in its use.



More information about the Haskell-Cafe mailing list