Re: an idea for replacing arguments.length

2013-11-11 Thread Corey Frang
wrote: On Sun, Nov 10, 2013 at 11:33 PM, Corey Frang gnar...@gmail.com wrote: Just to provide another way of working around it: var empty = {}; // or even a symbol? function splice(start = empty, count = 0, ...items) { if (start === empty) { ... } That is excellent! Has all

Re: an idea for replacing arguments.length

2013-11-11 Thread Corey Frang
Sure, it makes some sense when you see it like that :) I retract my this doesn't make sense I guess we are stuck with (...args) On Mon, Nov 11, 2013 at 2:37 PM, Brandon Benvie bben...@mozilla.com wrote: On 11/11/2013 11:31 AM, Corey Frang wrote: I hate to bring this up, as I'm sure I've

Re: an idea for replacing arguments.length

2013-11-10 Thread Corey Frang
Just to provide another way of working around it: var empty = {}; // or even a symbol? function splice(start = empty, count = 0, ...items) { if (start === empty) { ... } On Mon, Nov 11, 2013 at 1:22 AM, Jonas Sicking jo...@sicking.cc wrote: On Mon, Nov 11, 2013 at 2:12 AM, Allen