News for hackers. Stuff that matters.
Re:You Can't Handle Errors by d0mine on Saturday February 17, 2024 @11:12PM (#39416125)
There is a cost in trying to force the language to find bugs for you. More is not always better. Unlike a linter, ignoring false positives from a compiler requires more work to work around them.

Not having exceptions in the language creates a tradeoff as well. This may lead to either ignoring errors or adding non-linear boilerplate between where the issue is detected and where the code can handle it, negatively impacting readability and refactoring.

Re:You Can't Handle Errors by sirwhinesalot on Sunday February 18, 2024 @06:11AM (#39418119)
Yup, see the section on handling failures in the post. Though note that I use "exceptions" to refer to a very particular language feature, rather than the mechanism. Rust panics and Go panics work like exceptions but are meant to be used differently. Panics are good as are exceptions when used like panics.