4 ms·
For me, it will be if they ever get checked errors of some sort. I don’t want to use a language with unchecked exceptions flying about everywhere. This isn't sa
by vips7L 1y ago
For me, it will be if they ever get checked errors of some sort. I don’t want to use a language with unchecked exceptions flying about everywhere. This isn't saying I want checked exceptions either, but I think if they get proper unions and then have some sort of error union type it would go a long way.
- CharlieDigital 1y agoYou can get an error union now: https://github.com/amantinband/error-or https://github.com/amantinband/error-or
- vips7L 1y agoThe issue is the ecosystem and standard library. They still will be throwing unchecked exceptions everywhere
- raddan 1y agoI hear what you’re saying but the C# standard library is pretty well-behaved. If you’re really that concerned about it, wrap questionable calls in an exception handler and convert them into option types, and then you can force everything downstream to handle all the errors. I share your dislike of unchecked exceptions; sadly checked exceptions also kind of suck. Working in old Java codebases that use them is torture.