Is prototypal inheritance good or bad?
sapegin opened this issue · 3 comments
sapegin commented
The best parts of Javascript include…
The worst parts include…
Javascript has a class free object makeup, relying instead on objects inheriting properties directly from other objects - this is prototypal inheritance.
Is prototypal inheritance good or bad? And what is object makeup?
nelsonic commented
@sapegin we typically avoid prototypal inheritance in JS code wherever possible
because it can result in unpredictable behaviour.
We prefer to write purely functional
code to eliminate "side effects".
sapegin commented
Who are we? ;-)