News for hackers. Stuff that matters.
Re:How to stop functional programming by abecedarius on Tuesday February 23, 2016 @11:28AM (#11159999)
That wasn't quite a fair comparison.

    map f xs =
      if empty xs
      then []
      else f (head xs) : map f (tail xs)
(I like pattern matching too.)
Re:How to stop functional programming by jarcane on Tuesday February 23, 2016 @05:06PM (#11162738)
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.