4 ms·
Javascript's prototypes are more expressive than its classes, but still come short of Self on a few levels: 1. Self's prototypes support multiple delegation wh
by rileyphone 4y ago
Javascript's prototypes are more expressive than its classes, but still come short of Self on a few levels:
1. Self's prototypes support multiple delegation while JS objects only have one prototype (can be fixed with Proxies).
2. Javascript objects lack a universal clone method.
3. Self is entirely message based, while JS is property based.