Named Paramters
Gil Tayar
gilt at wix.com
Sun Jul 12 08:34:58 UTC 2015
It won't break if Gary Guo's idea is used, i.e. use a colon instead of an
equal.
On Sun, Jul 12, 2015 at 11:29 AM, Denis Pushkarev <zloirock at zloirock.ru>
wrote:
> 1. It would break backwards compatibility:
>
> ```js
> var bar = 1;
> if(baz(bar))foo(bar = 5);
> console.log(bar); // 5 in some cases
> ```
>
> 2. Code with this feature will be broken after minification.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
--
Yours,
Gil Tayar
Software Architect @ Wix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150712/2eede888/attachment.html>
More information about the es-discuss
mailing list