▲ | clausecker a day ago | ||||||||||||||||
I dislike sum-type based error handling. It is annoying syntactically and only really doable with lots of high-level combinators, which in turn hinder debuggability. | |||||||||||||||||
▲ | alper 8 hours ago | parent | next [-] | ||||||||||||||||
I'm dealing with Rust based error handling now and nesting `match` statements is not exactly very happy. Or having to pull in `anyhow` and dealing with its awful awful documentation. | |||||||||||||||||
▲ | lionkor a day ago | parent | prev [-] | ||||||||||||||||
Have you tried the approach that Zig has, or the approach that Rust has? They are easy to debug and do not use any crazy stuff, just simple syntax like `try x()` (Zig) or `x()?` (Rust) | |||||||||||||||||
|