3 ms·
> Is there any advantage to using OO in a language that doesn't have classes or inheritance? Like Self or javascript?
by masklinn 13y ago
> Is there any advantage to using OO in a language that doesn't have classes or inheritance?
Like Self or javascript?
- adamlett 13y agoJavaScript and Self don't have classes, but they do have inheritance.
- masklinn 13y agoSelf has delegation. Conflating delegation and inheritance is no better than conflating embedding and inheritance.
- munificent 13y agoDelegation seems pretty similar to inheritance to me. What am I missing?
- masklinn 13y agoIt doesn't set up is-a relationships and can be used for significantly more than differential inheritance (IIRC Self uses it for scoping).