Indentation of If-Then-Else

Henning Thielemann haskell at henning-thielemann.de
Tue Oct 24 12:29:55 EDT 2006


On Tue, 24 Oct 2006, Dave Menendez wrote:

> Henning Thielemann writes:
> 
> > Actually if-then-else isn't used that often today. Most programmers
> > gave it up in favor of guards. 
> 
> I question both these statements. Can you cite some evidence here?

I have not made statistics. My subjective impression from reading programs
of others is that there are many guards, and only few if-then-elses. If
you are one of the if-users, then hi, I'm the other one! ;-)


More information about the Haskell-prime mailing list