4 ms·
Anyone interested in prototype-based languages should also checkout io [1], which is a really clever implementation that doesn't get enough love. And unlike Sel
by scroot 7y ago
Anyone interested in prototype-based languages should also checkout io [1], which is a really clever implementation that doesn't get enough love. And unlike Self it will work with your favorite teletype emulation environments.
[1] https://iolanguage.org/ https://iolanguage.org/
- masklinn 7y agoI've always been really troubled by io's `clone` not not actually cloning the object but creating a sub-object / subtype instead. As well as the prototypes being an array (so manipulating prototypes is not really a thing). Oh and it uses the same lingo as javascript, which is a net negative, I think the Self lingo makes much more sense: a Self prototype is the object you copy in order to get more instances, once the copy is done there is no relationship between the prototype and the object just as there is no strict relationship beyond kinship between your car and its original prototype. I guess "template" might have been an even better term there. The shared behaviour (and potentially data) lives in traits and mixins.