
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! Thanks Neil

On Tue, 24 Oct 2006, 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!
I obviously read the wrong code, sorry. :-)

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!" :) John -- John Meacham - ⑆repetae.net⑆john⑈

On 10/24/06, John Meacham
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? /S -- Sebastian Sylvan +46(0)736-818655 UIN: 44640862

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/ ---

Hi
Are these numbers high, or low? I have no idea unless you specify a reference point. Compared to guards, say? Or case?
Let's just say that 2000 occursances of a syntactic construct between 3 projects probably means that it's not going to be depreciated ever (thankfully!) Neil
participants (5)
-
Henning Thielemann
-
John Meacham
-
Mirko Rahn
-
Neil Mitchell
-
Sebastian Sylvan