On 14 June 2012 21:45, Brendan Eich <[email protected]> wrote: > I can see adding ?? and ??= (undefined-only, not undefined-or-null). >
Excellent. > Is ||= really worth it? It would not assign if the left side is truthy, > but perhaps no one will mind. > Nice-to-have. The fact it doesn't assign if the left side is truthy is the only reason for having it, surely? > Given ||= is there any oxygen left in the room for ??=? ??= regardless. ||= is a nice to have _in addition_ if there's really enough impetus for it. In my code, I'd be using ??= a lot more often than ||=. -- T.J.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

