Existential operator (was: ||= is much needed?)
brendan at mozilla.org
Wed Jun 20 15:45:04 PDT 2012
Herby Vojčík wrote:
> I feel there is objection to introduce magical [[NullPatternObject]]
> into language, but all of CS-style soft-accesses could be solved very
> cleanly and consistently.
No, because (a) the overhead of a new object is too high; (b) with any
kind of suffix-? or suffix-.? as you proposed it would be observable
that you get a new object instead of short-circuiting to undefined --
the new object is exposed in the language.
More information about the es-discuss