Questions about Self

James Noble kjx at mcs.vuw.ac.nz
Sat Jun 25 10:17:26 UTC 2016


> So we have prototypes (self & JavaScript) and classes (sometimes added to JavaScript).

JavaScript prototypes are very different from Self prototypes. 

> Is there another way?

Yep. Object constructors from Emerald (like Javascripts' { } notation for objects)
and concatenation rather than delegation or inheritance. 

see e.g. http://lively.cs.tut.fi/publications/TR6-JavaScriptConcatenation-Taivalsaari.pdf

or more generally http://www.cs.tut.fi/~taivalsa/publications.html

or more recently "Object Inheritance Without Classes"  - Tim Jones et al
http://homepages.ecs.vuw.ac.nz/~tim/publications/ecoop16-object-inheritance.pdf

James 



More information about the Self-interest mailing list