On Jun 12, 2012, at 5:57 PM, David Herman <[email protected]> wrote:
> On Jun 12, 2012, at 11:02 AM, Brendan Eich wrote: > >> It's possible ?? or however we spell it isn't worth adding, while ?= is. The >> conditional assignment to default or normalize is the prime use-case. > > I'm skeptical. You don't foresee > > f(obj.x ?? defVal) > > happening a lot? I do. > > Dave > No need to foresee. We have Ruby precedent along with CoffeeScript in sight. We also have JS as it is used today, where || is used almost exclusively on the callee side to supply default values. /be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

