hi not sure if this proposal is/was already in discussion. didn't find it.
it's about having the chance to invoke a function with just commas where explicit undefined optional arguments at the beginning or in the middle (not the last one, so not to interfere with trailing commas https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas ) agree there's a convention to locate optional arguments at the end in general, but what if this possibility is accepted for exceptional cases where the order of arguments may infer in a function that alternates undefined optional values in its declaration. so, for example, given a function: ``` function fun(a, b, c, d, e, f) { // optional c and e values } ``` apart from a regular invocation: ``` fun('a', 'b', undefined, 'd', undefined, 'f') ``` being able to invoke it with just commas where explicit undefined optional values: ``` fun('a', 'b',, 'd',, 'f') ```
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss