Indentation of If-Then-Else
Mirko Rahn
rahn at ira.uka.de
Wed Oct 25 04:02:06 EDT 2006
>> > 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?
For me:
find . -name '*.hs' | wc -l
355
find . -name '*.hs' | xargs grep -v ^-- | grep -v ^$ | wc -l
28432
find . -name '*.hs' | xargs grep ' then ' | grep -v ':--' | wc -l
145
find . -name '*.hs' | xargs grep ' case ' | grep -v ':--' | wc -l
203
Regards, MR
--
-- Mirko Rahn -- Tel +49-721 608 7504 --
--- http://liinwww.ira.uka.de/~rahn/ ---
More information about the Haskell-prime
mailing list