Indentation of If-Then-Else
sylvan at student.chalmers.se
Wed Oct 25 03:53:22 EDT 2006
On 10/24/06, John Meacham <john at repetae.net> wrote:
> On Tue, Oct 24, 2006 at 05:29:58PM +0100, Neil Mitchell wrote:
> > >> 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 501 if statements in my current project. Yhc has 626. Hoogle
> > has 101. If's seem pretty well used to me!
> 920 in jhc. "I win!" :)
Are these numbers high, or low? I have no idea unless you specify a
reference point. Compared to guards, say? Or case?
More information about the Haskell-prime