3 ms·
The current object model is theoretically more powerful than class-based objects, but no one has found a way to implement it very efficiently yet. Thus, for per
by marijn 18y ago
The current object model is theoretically more powerful than class-based objects, but no one has found a way to implement it very efficiently yet. Thus, for performance, it would be nice to have a more static alternative. (Though I suppose they could have come up with a static prototypical system, rather than classes. Classes can be pretty nice though, when they are not Java/C++/C# classes.)
- cbetz 18y agoI read recently that Tracemonkey will have prototype "cache" of sorts that should speed up prototypical inheritance significantly.