Re:Why isn't Haskell popular in industry?
by Confusion on Monday August 02, 2010 @02:54AM
(#1567060)
To illustrate this point, a choice snippet from that Reddit thread, explaining part of what seems to be considered 'the proper solution'. Please note that my intention is not to make fun of this, but to illustrate that the terminology in which people in the Haskell community communicate makes it impenetrable for someone just trying to pick up the language and do stuff with it.
http://www.reddit.com/r/haskell/comments/cs54i/how_would_you...
[ Parent
| on HN ]
Re:Why isn't Haskell popular in industry?
by applicative on Monday August 02, 2010 @11:28PM
(#1570013)
I think you are being misled by the seemingly simple headline "how would you write du...". The question was not straightforwardly practical but deep in the territory of so-called 'recursion schemes:
The natural way to do this is to use an unfold to
generate a list or tree of all the files in the
directory tree, map over them to get the sizes,
and do a fold to get the total.
-- And similarly elsewhere, more explicitly, as he makes clear why he isn't interested in the 'obvious' solutions, e.g.: Yep, this is a good practical approach if I just want
to "du". I'm looking specifically for the fold . map .
unfold approach ...
The interventions of doliorules and then winterkoninkje (whom you quote) were in fact the ones that spoke to his condition.
Re:Why isn't Haskell popular in industry?
by silentbicycle on Monday August 02, 2010 @01:54PM
(#1568394)
Well, sure. Haskell uses mathematical terminology sometimes.
Other languages use weird terminology, too: "public static void main"? How about "pure virtual destructor"? "Visitor"?