point 1 is utopia since ...varname breaks syntax in any case second point would be easier like this ?
function (arg1obj={a,b,c}, p=[x,y]) { } On Wed, Oct 26, 2011 at 8:27 PM, Allen Wirfs-Brock <al...@wirfs-brock.com>wrote: > > > 1) arguments is needed for backwards compatability (no migration tax) > > 2) it is useful with destructing parameters: > > function ({a,b,c}, [x,y]) { > if (arguments.length < 2) ... > ... > var arg1obj = argruments[0]; > ... > > > > > Sent from Samsung tablet >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss