Neat! Thanks for the link. Dominic
On Thu, Mar 13, 2008 at 10:58 AM, Jon Zeppieri <[EMAIL PROTECTED]> wrote: > On Thu, Mar 13, 2008 at 1:48 PM, Dominic Cooney > <[EMAIL PROTECTED]> 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 > _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
