It can be annoying, but I still prefer errors as values, I think Rust does this better than Go, in both of these languages you can tell if a function returns an error just by looking at the function signature In other languages you will know that the function throws an error after your program has failed.
View all comments
11
u/gdmr458 Sep 13 '23
It can be annoying, but I still prefer errors as values, I think Rust does this better than Go, in both of these languages you can tell if a function returns an error just by looking at the function signature In other languages you will know that the function throws an error after your program has failed.