by doublerebel · 11y ago · 0 comments
...arguments object not being an Array is yet another
JavaScript wart that causes nothing but special cases
and complexity in optimization pipelines...
So, why can't we make `arguments` into an immutable Array for ES7? Is there any compiler advantage to keeping the special case?While it would be nice to require everyone to re-write their website code, the cost would probably be in the hundreds of billions of dollars. The pragmatic choice is to leave it in place and discourage it's use. Maybe it can be deprecated in a couple decades.