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

List sender syntax sugar #818

Open
emil14 opened this issue Dec 29, 2024 · 0 comments
Open

List sender syntax sugar #818

emil14 opened this issue Dec 29, 2024 · 0 comments
Assignees
Labels

Comments

@emil14
Copy link
Collaborator

emil14 commented Dec 29, 2024

  1. Change existing list literal const syntax from JS/Python-like to Go-like
  2. Add support for list-sender that mimics const syntax but refers to senders, rather than other constants, similar to Tagged Unions #751 and Struct builder syntax sugar #730
list<int>{sender1, sender2, sender3} -> ...

Downsides

Same as with #730 - it's inconsistent with const literals, because we don't refer to type on the right side of the const declaration, because we know the type from the left side. In the network, on the other hand, we have to refer to a type


Related to #730

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

No branches or pull requests

1 participant