||= is much needed?

Brendan Eich brendan at mozilla.com
Fri Jun 15 13:04:55 PDT 2012

David Herman wrote:
> So I favor ?? as well as both ||= and ??=.
> As for null, I can see how there's confusion about whether to use null vs undefined, and so I can see why CoffeeScript would just try to blur the distinction between them. But I think by sticking to the simpler semantics it will help clarify the distinction. The JS semantics currently treats only undefined as "no value" and it would continue to do so.

I agree on all this.

I'll update the strawman soon.


More information about the es-discuss mailing list