Re: Trailing comma for function arguments and call parameters

2014-08-24 Thread Dmitry Soshnikov
...@gmail.com Cc: es-discuss es-discuss@mozilla.org Date: Sun, 06 Jul 2014 12:07:09 +0400 Subject: Re: Trailing comma for function arguments and call parameters In fact, how about the same syntax for arrays and function calls? With trailing commas and elisions? So foo(1,,3,,) would

Re: Trailing comma for function arguments and call parameters

2014-08-24 Thread Dmitry Soshnikov
-discuss es-discuss@mozilla.org Date: Sun, 06 Jul 2014 12:07:09 +0400 Subject: Re: Trailing comma for function arguments and call parameters In fact, how about the same syntax for arrays and function calls? With trailing commas and elisions? So foo(1,,3,,) would be an alias for foo(1

Re: Trailing comma for function arguments and call parameters

2014-08-24 Thread Rick Waldron
: Trailing comma for function arguments and call parameters In fact, how about the same syntax for arrays and function calls? With trailing commas and elisions? So foo(1,,3,,) would be an alias for foo(1,undefined,3,undefined) ? 06.07.2014, 11:57, Alex Kocharin a...@kocharin.ru: Unless

Re: Trailing comma for function arguments and call parameters

2014-07-10 Thread Isiah Meadows
On Tue, Jul 8, 2014 at 8:05 AM, Peter van der Zee e...@qfox.nl wrote: On Fri, Jul 4, 2014 at 12:52 AM, Dmitry Soshnikov dmitry.soshni...@gmail.com wrote: Will it makes sense to standardize a trailing comma for function arguments, and call parameters? Fwiw, it also makes sense in AMD

Re: Trailing comma for function arguments and call parameters

2014-07-08 Thread Jussi Kalliokoski
...@gmail.com Cc: es-discuss es-discuss@mozilla.org Date: Sun, 06 Jul 2014 12:07:09 +0400 Subject: Re: Trailing comma for function arguments and call parameters In fact, how about the same syntax for arrays and function calls? With trailing commas and elisions? So foo(1,,3,,) would

Re: Trailing comma for function arguments and call parameters

2014-07-08 Thread Peter van der Zee
On Fri, Jul 4, 2014 at 12:52 AM, Dmitry Soshnikov dmitry.soshni...@gmail.com wrote: Will it makes sense to standardize a trailing comma for function arguments, and call parameters? Fwiw, it also makes sense in AMD, where the set of dependencies can grow and the desire to put every module on its

Re: Trailing comma for function arguments and call parameters

2014-07-07 Thread Dmitry Soshnikov
+0400 Subject: Re: Trailing comma for function arguments and call parameters In fact, how about the same syntax for arrays and function calls? With trailing commas and elisions? So foo(1,,3,,) would be an alias for foo(1,undefined,3,undefined) ? 06.07.2014, 11:57, Alex Kocharin

Re: Trailing comma for function arguments and call parameters

2014-07-07 Thread Brendan Eich
Oliver Hunt wrote: On Jul 3, 2014, at 3:52 PM, Dmitry Soshnikovdmitry.soshni...@gmail.com wrote: Hi, Will it makes sense to standardize a trailing comma for function arguments, and call parameters? We have it for Array and Object initialisers, and people like using them for long

Re: Trailing comma for function arguments and call parameters

2014-07-06 Thread Alex Kocharin
a trailing comma for function arguments, and call parameters?  We have it for Array and Object initialisers, and people like using them for long lists with prediction of new items adding in the future:  ```  var modes = [    read,    write,  ];  var platforms = {    web,    canvas

Re: Trailing comma for function arguments and call parameters

2014-07-06 Thread Alex Kocharin
in javascript, I wish for more such bugs really... 04.07.2014, 20:33, Oliver Hunt oli...@apple.com:  On Jul 3, 2014, at 3:52 PM, Dmitry Soshnikov dmitry.soshni...@gmail.com wrote:   Hi,   Will it makes sense to standardize a trailing comma for function arguments, and call parameters?   We

Re: Trailing comma for function arguments and call parameters

2014-07-06 Thread Isiah Meadows
My responses are inline. From: Alex Kocharin a...@kocharin.ru To: Oliver Hunt oli...@apple.com, Dmitry Soshnikov dmitry.soshni...@gmail.com Cc: es-discuss es-discuss@mozilla.org Date: Sun, 06 Jul 2014 12:07:09 +0400 Subject: Re: Trailing comma for function arguments and call parameters

Re: Trailing comma for function arguments and call parameters

2014-07-05 Thread Dmitry Soshnikov
On Fri, Jul 4, 2014 at 9:33 AM, Oliver Hunt oli...@apple.com wrote: On Jul 3, 2014, at 3:52 PM, Dmitry Soshnikov dmitry.soshni...@gmail.com wrote: Hi, Will it makes sense to standardize a trailing comma for function arguments, and call parameters? We have it for Array and Object

Re: Trailing comma for function arguments and call parameters

2014-07-04 Thread Oliver Hunt
On Jul 3, 2014, at 3:52 PM, Dmitry Soshnikov dmitry.soshni...@gmail.com wrote: Hi, Will it makes sense to standardize a trailing comma for function arguments, and call parameters? We have it for Array and Object initialisers, and people like using them for long lists with prediction

Trailing comma for function arguments and call parameters

2014-07-03 Thread Dmitry Soshnikov
Hi, Will it makes sense to standardize a trailing comma for function arguments, and call parameters? We have it for Array and Object initialisers, and people like using them for long lists with prediction of new items adding in the future: ``` var modes = [ read, write, ]; var platforms