News for hackers. Stuff that matters.
Re:The road to Dart 3: A fully sound, null safe language by duped on Thursday December 08, 2022 @05:43PM (#33914803)
The thing that is unfortunate is that Result kind of encourages early failure and bubbling up vs actually handling the error and recovering or crashing.

The other thing you don't see much in Result heavy code is coalescing multiple errors (like for example, most parsers in Rust just bail out at the first error when you want all the errors at once). It's possible to write code that does that, and exceptions have the same problem, but it's still a bit cumbersome.

The real frontier of error handling is algebraic effects, or resumable exceptions.

There are no comments on this comment yet.