Named Paramters
Benjamin Gruenbaum
benjamingr at gmail.com
Sun Jul 12 08:28:37 UTC 2015
No, I didn't mean simulating them via an object literal. I mean actual
named parameters like in Python or C# for example.
Are there any plans to peruse that and if so what is the status?
On Sun, Jul 12, 2015 at 12:56 AM, Bucaran <jbucaran at me.com> wrote:
> What about:
>
> foo({ bar: 5 })
>
> function foo ({ baz, bak, bar }) {
> console.log(bar)
> }
>
> Or is there anything else you are considering or something I am missing.
>
> Regards
>
> > On Jul 12, 2015, at 6:47 AM, Benjamin Gruenbaum <benjamingr at gmail.com>
> wrote:
> >
> > Hey, I wasn't able to find information about the current status of a
> named parameters propsosal:
> >
> > // as in:
> > foo(bar = 5); // logs 5
> >
> > function foo(baz, bak, bar){
> > console.log(bar);
> > }
> >
> > Is this being considered? Was it decided for/against? Anyone working on
> it?
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss at mozilla.org
> > https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150712/40f77b4b/attachment.html>
More information about the es-discuss
mailing list