Re:Javascript: is 'this' a code smell?
by silentbicycle on Thursday November 04, 2010 @11:03PM
(#1871843)
> Certainly there's a more accepted nomenclature?
I don't know if there is, but there should be.
The defining aspect seems to be that there aren't pure ADTs, just collections based an associative arrays ("dicts" / "tables"), and methods are just table fields that contain a function. Also, Python has classes where Lua really does just have pure tables with hooks ("metatables", which make it easy to implement prototypes, classes, and many other constructs).
I don't know if there is, but there should be.
The defining aspect seems to be that there aren't pure ADTs, just collections based an associative arrays ("dicts" / "tables"), and methods are just table fields that contain a function. Also, Python has classes where Lua really does just have pure tables with hooks ("metatables", which make it easy to implement prototypes, classes, and many other constructs).