4 ms·
JavaScript engines like V8 can already do exactly as you said through hidden classes based on source code position and have been doing so for a long time. I hav
by felixfbecker 5y ago
JavaScript engines like V8 can already do exactly as you said through hidden classes based on source code position and have been doing so for a long time.
I haven't read any evidence that classes are actually better optimized, even if it's often argued as the reason for why classes are better.