You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those are merely by-products of the spec mechanics (Nil reference), rather the intended semantics of optional chaining.
The proposed semantics may also be somewhat confusing for users, and it makes more difficult to have simple understanding of what short-circuiting does.
Those could be re-added later in case clear semantics and compelling use cases are found.
Strategy for fixing the issue:
use proper grammar and/or use static semantics in order to have SyntaxError where possible;
PutValue on a Nil Reference should throw a TypeError. Ditto for the delete operator.
The text was updated successfully, but these errors were encountered:
* Update to the most recent spec version.
* Statically forbid use in contexts like `a?.b = c` (but not `delete
a?.b`). Closes#4, closes#18.
* Remove short-circuiting piercing parentheses. Closes#19.
* Minor bugfixes.
Those are merely by-products of the spec mechanics (Nil reference), rather the intended semantics of optional chaining.
The proposed semantics may also be somewhat confusing for users, and it makes more difficult to have simple understanding of what short-circuiting does.
Those could be re-added later in case clear semantics and compelling use cases are found.
Strategy for fixing the issue:
Ditto for the delete operator.The text was updated successfully, but these errors were encountered: