Re:Kill hashtables, get shorter code.
by jfager on Monday July 19, 2010 @05:44PM
(#1530277)
The point was not "Coffeescript is better than Clojure", it was "destructuring assignment (like in Coffeescript, for instance) is a better solution than the one proposed in the post". If Clojure has sophisticated destructuring assignment, awesome. Use that instead.
[ Parent
| on HN ]
Re:Kill hashtables, get shorter code.
by swannodette on Monday July 19, 2010 @08:55PM
(#1530779)
I suppose I failed to see how destructuring assignment on hash-maps accomplishes anything interesting at all related to the post. The post eliminates hash-maps altogether.
It eliminates them from the api, but how does memoize work? There are still hashtables, you just never get a hook on them.
I'm just saying that I prefer having that hook, and that destructuring assignment lets me do so with brevity and clarity.
Re:Kill hashtables, get shorter code.
by billmcneale on Tuesday July 20, 2010 @01:17AM
(#1531219)
Destructuring is a pretty dangerous practice because it completely destroys encapsulation.