4 ms·
I think that what is lost is that Javascript is more of a functional language than an object-oriented one and a move to hooks embraces its functional roots whil
by Unbeliever69 7y ago
I think that what is lost is that Javascript is more of a functional language than an object-oriented one and a move to hooks embraces its functional roots while eliminating numerous footguns (this), simplifying reuse, and reducing redundancy.
- filleduchaos 7y agoI don't quite see how Javascript pre-ES5 was any more of a functional language than, say, Ruby at the time (a notoriously OO language). "It uses prototypes, not classes!" simply makes it a different kind of object-oriented.