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

Jon Fairbairn jon.fairbairn at cl.cam.ac.uk
Thu Jul 27 10:26:39 EDT 2006

On 2006-07-27 at 13:01+0200 Tomasz Zielonka wrote:
> But because if-then-else is an expression, there is another
> problem.

That was exactly my point when I made the muttering about
self-bracketing (if ... fi, like everything else, is an
expression in Algol68) all those years ago.  I really regret
not having been more forceful!

> Also, after a few years of Haskell programming, I am still not
> sure how to indent if-then-else.

what I was alluding to in my footnote...

Jón Fairbairn                              Jon.Fairbairn at cl.cam.ac.uk

More information about the Haskell-Cafe mailing list