News for hackers. Stuff that matters.
Re:Thoughts on the “Guard” Proposal for Go's Error Handling by baq on Sunday November 06, 2022 @04:12AM (#33490656)
Adding or removing checked exceptions breaks library users in very painful ways: if you can’t handle an exception, you should rethrow, but this means a wavefront of code breakage downstream, so the library gets pinned and is never upgraded.
Re:Thoughts on the “Guard” Proposal for Go's Error Handling by layer8 on Sunday November 06, 2022 @08:13AM (#33492219)
The solution to this is exception wrapping, and designing useful exception types in the first place. This is not an issue.
Re:Thoughts on the “Guard” Proposal for Go's Error Handling by baq on Sunday November 06, 2022 @12:13PM (#33494788)
If it wasn’t, libraries would use checked exceptions, and they aren’t.