[Haskell-cafe] Why does Haskell have the if-then-else syntax?

David House dmhouse at gmail.com
Thu Jul 27 11:56:09 EDT 2006


On 27/07/06, Brian Hulley <brianh at metamilk.com> wrote:
> I think there's really only one way when it needs to occupy more than one
> line:
>
>        if c
>              then t
>              else f

Confusingly,

if c
then t
else f

Also works, although no-one really knows why.

-- 
-David House, dmhouse at gmail.com


More information about the Haskell-Cafe mailing list