News for hackers. Stuff that matters.
Re:Functional programming languages should be better at muta... by dllthomas on Wednesday July 31, 2024 @04:57PM (#41123389)
Sum types can have stack traces by adding a stack trace on creation. `Result<(), &'static str>` does not have a stack trace, but `Result<(), std::backtrace::Backtrace>` sure does. YMMV as to whether it makes sense to do that in any particular circumstance.

There are no comments on this comment yet.