Argument unpacking?

P T Withington ptw at pobox.com
Thu Nov 9 14:19:01 PST 2006


On 2006-11-09, at 16:29 EST, Brendan Eich wrote:

> It would also be helpful for bootstrapping if new and apply could  
> be composed; this came up when I wrote Narcissus.  Suggestions?

Make new a class method rather than a keyword?  (I know, too  
controversial.  But that is the Lisp answer.)

The thing I most miss about apply is that I cannot have 'spread args':

foo.apply(bar, bletch, crud, rest) === foo.apply(bar, [bletch,  
crud].concat(rest))



More information about the Es4-discuss mailing list