Several languages use the ? operator to cut a lot of boilerplate in error handling.
Most notably rust: https://doc.rust-lang.org/rust-by-example/std/result/question_mark.html
Are there any plans to introduce same functionality into Roc?
We have "backpassing" for that, I recommend searching for that term in the tutorial :)
Backpassing is poor choice for error handling as it clashes with effect management, similar to monads.
Can you be more specific in what you mean by it clashes with effect management?
Last updated: Jun 16 2026 at 16:19 UTC