3 ms·
That is, people who understand class-based inheritence have a very small leap to get prototypal inheritence. I used to think that, and then I watched a lot of
by angelbob 15y ago
That is, people who understand class-based inheritence have a very small leap to get prototypal inheritence.
I used to think that, and then I watched a lot of people try. It's harder than you think.
I used a networked server used primarily for MUDs called DGD (Dworkin's Generic Driver) for awhile. The most common MUD libraries for that use prototype-based inheritance. I know mine (based on Skotos) supported multiple prototypes. I think Skotos did as well.
It was interesting - it was pretty easy to explain the prototype-based inheritance to non-programmers. It was much more difficult (usually) to explain it to programmers.
I don't think it's as much "class-based inheritance is good preparation and prototype-based inheritance isn't" as you think.