A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/tc39/proposal-optional-chaining/issues/3 below:

"Short-circuiting" feature · Issue #3 · tc39/proposal-optional-chaining · GitHub

In this proposal, as the explainer says,

a?.b.c().d   // undefined if a is null/undefined

The "short-circuiting" semantics received some criticism at the previous TC39 meeting where the proposal was discussed. A few committee members (including Waldemar Horwat) expressed a preference that this would throw (on the access to .c) to keep the semantics simple and more locally understandable, and refrain from changing .. The explainer talks about the "right hand side", but where does the right hand side end exactly?

If you don't plan to remove this feature, it would be useful to extend the explainer with some more motivating use cases.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4