Destructuring and default parameters in functions

Marius Gundersen gundersen at gmail.com
Fri Jun 28 07:08:26 PDT 2013


Good to see that the expected functionality is also how it is intended to
function. Hopefully the bug Brandon referred to will be fixed soon, so it
can be tested in a browser.

By using default params and destructuring a neat module loading syntax can
be defined (as opposed to the import syntax of ES6 or the array in AMD):
https://gist.github.com/mariusGundersen/5884450

Marius Gundersen


On Thu, Jun 27, 2013 at 8:27 PM, Brandon Benvie <bbenvie at mozilla.com> wrote:

> On 6/27/2013 3:19 AM, Marius Gundersen wrote:
>
>> Or maybe it just isn't implemented in Firefox?
>>
>
> This is correct. https://bugzilla.mozilla.org/**show_bug.cgi?id=884372<https://bugzilla.mozilla.org/show_bug.cgi?id=884372>
>
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130628/67179d7d/attachment-0001.html>


More information about the es-discuss mailing list