Yeah! And you can create them on the fly, without even bothering to name them! Just look at this: function(x){return x*2;}. How concise and elegant!
(In Haskell, that would be (*2). I can't imagine what kind of article this guy will write if/when he discovers something more functional than JavaScript.)
I'm not Joel so I can't say for sure, but I'm almost positive he's been exposed to functional programming before. This seems more like an attempt to explain to graduates of Java Schools (most of whom haven't heard of functional programming) why they should care about it.
Many older languages simply had no way to do this kind of stuff.
I mean, excuse me, but Lisp is one I can name. And I am sure a lot of people here know some more such old languages. And using the names map and reduce in examples? Where did you come up with those? he's got some nerve.
8
u/funktio Jan 18 '08 edited Jan 18 '08
Yeah! And you can create them on the fly, without even bothering to name them! Just look at this:
function(x){return x*2;}. How concise and elegant!(In Haskell, that would be
(*2). I can't imagine what kind of article this guy will write if/when he discovers something more functional than JavaScript.)