Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Reform eventual send syntax #11

Open
erights opened this issue Jan 26, 2019 · 1 comment
Open

Reform eventual send syntax #11

erights opened this issue Jan 26, 2019 · 1 comment

Comments

@erights
Copy link
Contributor

erights commented Jan 26, 2019

bob ! foo(carol)

is an eventual send using the proposed infix bang syntactic sugar. It needs to expand to something. For present purposes, we also need to write out code without sugar. The expansion currently supported by this repository

Vow.resolve(bob).e.foo(carol)

serves neither of these purposes well. For manually written code, I suggest

E(bob).foo(carol)

where E is equivalent to

function E(target) { return Vow.resolve(target).e; }
@erights
Copy link
Contributor Author

erights commented Jan 26, 2019

The danger leaving in support for either .e. or E(...) is that the exposed proxy may be reified rather than immediately invoked. If we continue to use either of these, we probably want to give ourselves a linting rule to catch this easy error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant