roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.46k stars 313 forks source link

Improve Result-chaining documentation #6952

Closed ageron closed 3 months ago

ageron commented 3 months ago

This PR updates the documentation to clarify how to chain functions that return a Result.

  1. Added a note about the upcoming syntax sugar for that (i.e., the ? operator) in the roc-for-elm-programmers.md page, at the start of the backpassing section (since backpassing will be replaced, IIUC). The note links to #6828.
  2. Added a Result-chaining example in the tutorial, as well as a note that some syntax sugar for this is coming.
smores56 commented 3 months ago

@ageron could you sign your commit please? The CONTRIBUTING.md doc tells us how to do that for existing commits.

ageron commented 3 months ago

Sure, will do that. 👍

ageron commented 3 months ago

Done, commits are now signed and github marked them as verified. I did the same for my other PRs.