Existential Operator / Null Propagation Operator

Brendan Eich brendan at mozilla.org
Tue Jun 2 18:30:33 UTC 2015

Sam Ruby wrote:
> I think that the problem here isn't that it is ambiguous, it is that
> it isn't obvious.

Fair point!

> Something that might be more obvious but requires
> an additional character: `orders.?[client.key].price`.

That's not bad. The whole proposal may founder, though, on "grawlix" 

And some still want the ?obj.foo.bar to "soak" null/undefined obj and 
missing foo or null/undefined value of foo. CoffeeScript fans for sure, 
but it's in principle and practice at least as valid a use-case as 
obj.?foo is.


More information about the es-discuss mailing list