The mere fact the this discussion is coming up, is a good argument (to me anyway) that default parameter behaviour should have been in terms of argument count, not |undefined|. Again, sentinel values that are regular valid values are a bad thing.
I still cannot recall what the usage scenario that required undefined => not provided was, but this seems like a very good argument for that decision being wrong. —Oliver On Nov 10, 2013, at 1:19 PM, Brendan Eich <[email protected]> wrote: >> On Nov 10, 2013, at 9:12 PM, Andrea Giammarchi <[email protected]> >> wrote: >> >> Not sure why this is so needed though. > > Allen's posts make the case: webidl and varargs-style functions. Not all > legacy. > > /be > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

