3 ms·
It's a pretty good illustration of why associative arrays in Javascript are a design failure, by conflating different notions in the same implementations: - ob
by mercurial 14y ago
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."