3 ms·
I think JS had a perfectly reasonable and workable OOP implementation, actually pretty elegant, but so different from the C++/Java class paradigm that almost no
by kbelder 4y ago
I think JS had a perfectly reasonable and workable OOP implementation, actually pretty elegant, but so different from the C++/Java class paradigm that almost nobody used it the way it was supposed to be. Instead, JS Objects were treated like broken Java classes, which led to all sorts of problems.
- petre 4y agoIt's still hard to get the name of an object and use instanceof on it though. Ruby has the class and is_a? methods.