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
Infix bang and infix bang-dot both conflict with TypeScript. Whatever syntax we do propose, we'd like it to be adopted by TypeScript as well. Infix wavy-dot, ~. is currently the leading candidate. Presumably, it would combine with optional chaining either by ?~. or ~?..
The text was updated successfully, but these errors were encountered:
erights
changed the title
Change for infix bang to infix wavy-dot
Change from infix bang to infix wavy-dot
Sep 12, 2019
What would "optional chaining" do? I'm imagining something that short-circuits, so in p = x~.foo()~?.bar()~?.baz(), if foo() resolves to undefined then p is resolved to undefined and bar/baz are not invoked.
Infix bang and infix bang-dot both conflict with TypeScript. Whatever syntax we do propose, we'd like it to be adopted by TypeScript as well. Infix wavy-dot,
~.
is currently the leading candidate. Presumably, it would combine with optional chaining either by?~.
or~?.
.The text was updated successfully, but these errors were encountered: