See
Again, all semantics…
Eric Elliott
91
What will be the role of any Inhetitance in FP?
I come back to JavaScript (ES6) from Java and I don’t see any. Why not say ALL Inhetitance is bad practice - full stop.
In my projects I use pure data objects and I don’t polute them with methods. No need for inheritence here, data values are uniqe so no need to copy anything around.
Moduls expose functions, they recive and return function. Also no need for inheritence here. Higher order function not inheritence eliminate code duplication.
Eric in one of your articles you chalanged readers to find good case for Classical Inheritence - I cannot find any.
But I also cannot find any good case for Prototypal Inheritence.