2 ms·
Great answer, thanks for explaining this! I'm curious about how much this approach differs from the one pursued by Javascript, which seems pretty similar to me.
by ThePhysicist 12y ago
Great answer, thanks for explaining this! I'm curious about how much this approach differs from the one pursued by Javascript, which seems pretty similar to me.
- perigrin 12y agoJavascript lacks the "packages" part of the mix, it uses Prototypal inheritance rather than Class based inheritance. If you squint you can view prototypal inheritance as class-based-inheritance-where-everything-is-a-singleton ... but you really need some alcohol to deal with the headache you get from squinting that much.