I just noticed that the binary operator version of ? got removed in PR#9618. Can you explain the reasoning behind that change @Richard Feldman?
I quite liked that syntax, it's a very compact way to add descriptive errors:
- first_str = strings.first() ? NoFirstError
+ first_str = match strings.first() {
+ Ok(s) => s
+ Err(e) => { return Err(NoFirstError(e)) }
+ }
I used that syntax a lot in our build_website.roc script (old Roc).
I wanted to revisit the syntax
but I admittedly have not thought of any better ideas since :laughing:
maybe it's actually best to put it back then
want to open a pr for that?
Yes. right away
Last updated: Jul 23 2026 at 13:15 UTC