Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from infix bang to infix wavy-dot #12

Closed
erights opened this issue Sep 12, 2019 · 1 comment
Closed

Change from infix bang to infix wavy-dot #12

erights opened this issue Sep 12, 2019 · 1 comment
Labels
eventual-send package: eventual-send

Comments

@erights
Copy link
Member

erights commented Sep 12, 2019

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 ~?..

@erights erights changed the title Change for infix bang to infix wavy-dot Change from infix bang to infix wavy-dot Sep 12, 2019
@warner
Copy link
Member

warner commented Sep 21, 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.

@warner warner transferred this issue from Agoric/eventual-send Dec 1, 2019
@warner warner added the eventual-send package: eventual-send label Dec 1, 2019
dckc pushed a commit to dckc/agoric-sdk that referenced this issue Dec 5, 2019
node-ag-chain-cosmos -> ag-chain-cosmos
dckc pushed a commit to dckc/agoric-sdk that referenced this issue Dec 5, 2019
@erights erights closed this as completed Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eventual-send package: eventual-send
Projects
None yet
Development

No branches or pull requests

2 participants