Re:How to stop functional programming
by abecedarius on Tuesday February 23, 2016 @11:28AM
(#11159999)
That wasn't quite a fair comparison.
(I like pattern matching too.)
[ Parent
| on HN ]
The point isn't to be a "fair" comparison, but rather to compare the number of explicit operations involved. I'd note that your Haskell example there is largely equivalent to the Scheme one.
Re:How to stop functional programming
by abecedarius on Tuesday February 23, 2016 @08:49PM
(#11163919)
Yes, it's equivalent on purpose. Yet in Haskell it's only a couple tokens longer than the pattern-matching original which you called "far more terse". To fairly test a claim, one should change only the variables the claim is about.