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

Update the tutorial to add the ? operator #7064

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

ageron
Copy link
Contributor

@ageron ageron commented Sep 7, 2024

This PR adds a section on the ? try operator.

As the Result.try + ? section was getting a bit long, I added an explicit "Error handling" section. I think it's an important topic so it's worth making it stand out a bit more.

Also, when the ! operator is introduced, I think it's useful to say it's similar to the ? operator, but for Task instead of Result.

@lukewilliamboswell lukewilliamboswell merged commit af7766f into roc-lang:main Sep 10, 2024
18 checks passed
@ageron ageron deleted the update-tutorial-try-op branch September 11, 2024 03:11
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.

2 participants