3 ms·
> Would someone please enlighten me as to why it is? Both Lua and Javascript attach protocols to their hashmaps which most languages attach to other bits (clas
by masklinn 8y ago
> Would someone please enlighten me as to why it is?
Both Lua and Javascript attach protocols to their hashmaps which most languages attach to other bits (classes, typeclasses, traits, …) — even if those other bits are underlaid by hashmaps at the end of the day.
They're more like general-purpose objects which can act as hashmaps (badly in the case of javascript).