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

New Record Builder : <- syntax #5421

Merged
merged 6 commits into from
May 17, 2023
Merged

Conversation

agu-z
Copy link
Sponsor Collaborator

@agu-z agu-z commented May 17, 2023

As discussed in this Zulip topic, we'd like to try out a new syntax for Record Builder fields that keeps the : after the label:

usersAndPosts = Task.succeed {
    users: <- Http.get "/users" |> Task.batch,
    posts: <- Http.get "/posts" |> Task.batch,
}

The intention is to make it clearer that we are assigning a record field, and obvious that this isn't introducing a new name to scope.

@ayazhafiz ayazhafiz enabled auto-merge May 17, 2023 18:26
@ayazhafiz ayazhafiz merged commit 57336e3 into main May 17, 2023
10 checks passed
@ayazhafiz ayazhafiz deleted the agu-z/record-builder-colon-arrow branch May 17, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants