Re:An Object is not a Hash
by mercurial on Tuesday October 09, 2012 @04:34AM
(#4630558)
It's a pretty good illustration of why associative arrays in Javascript are a design failure, by conflating different notions in the same implementations:
- objects are not hashes
- hashes are not arrays
It sounds like somebody reading the classic quote by Saint Exupéry, "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.", and concluding: "Well, if I mash all the elements to a paste, there won't be anything to take away."
- objects are not hashes
- hashes are not arrays
It sounds like somebody reading the classic quote by Saint Exupéry, "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.", and concluding: "Well, if I mash all the elements to a paste, there won't be anything to take away."