3 ms·
> The problem is when have developers that are used to classical inheritance That's a very, very broad category, and some implementations are very close to JS.
by Lazare 10y ago
> The problem is when have developers that are used to classical inheritance
That's a very, very broad category, and some implementations are very close to JS. Python is normally considered to have "classical inheritance", but as a practical matter for day-to-day programming Python inheritance works very similarly to how JS prototypes work (eg, having an inheritance chain and checking methods as you go up the chain until you find something that implements what you're looking for).
I find that when people try to emphasise how different JS is from other languages, what they generally mean is how different it is from Java. :)