From: es-discuss [mailto:[email protected]] On Behalf Of David 
Bruant

> Why creating something new if it's only encouraging a bad practice? Is there 
> a good use case?

+1. I thought we were trying to make `undefined` and not passed equivalent. 
Adding a feature specifically designed to bypass this seems unfortunate, 
especially since we already have an ugly feature (`arguments.length`) for doing 
such an ugly thing.

On the other hand, Brendan's proposal seems pretty neat. I am pretty sure that 
while writing some Traceur code I wanted something similar. But even then, I 
suppose I would want `args` in his example to always have length `3`, so as to 
discourage the bad practice. I.e. `f(1)` would give `args` as `[1, undefined, 
undefined]`. It would be a way of reifying "arguments for the ES6 era," where 
differences between not-passed and `undefined` are minimized, and of course it 
would be a real array.

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to