ES4 draft: Function

Dominic Cooney dominic.cooney at gmail.com
Thu Mar 13 11:03:52 PDT 2008


Neat! Thanks for the link.

Dominic

On Thu, Mar 13, 2008 at 10:58 AM, Jon Zeppieri <zeppieri at gmail.com> wrote:
> On Thu, Mar 13, 2008 at 1:48 PM, Dominic Cooney
>  <dominic.cooney at gmail.com> wrote:
>  > Why doesn't Function have something like apply that does the same as
>  >  in a new expression, i.e. allocate-init-and-apply? To put it another
>  >  way: given arguments in an array, I want to write:
>  >
>  >  F.thisThing(args) and have it mean the same as new F(args[0], args[1],
>  >  ... args[n-1])
>
>  How about the proposed spread/spat(...) operator :
>    new F(...args)
>
>  http://bugs.ecmascript.org/ticket/357
>
>  -Jon
>



More information about the Es4-discuss mailing list