Why I Changed My Mind About Exceptions
dev.to·3d·
Discuss: DEV
🛡️Error Handling
Preview
Report Post

I prefer the clean code that is more often produced by throwing exceptions. With the happy path uncluttered by error handling, the implicit propagation of errors to appropriate orchestration layers, and the clean separation of concerns. It’s aesthetically cleaner and moves the complexity of error handling to a one or just a few decision points.

But when Rust’s approach to error handling gained cultural influence and C# developers (among many others of course) began exploring Result types through community libraries, I re-examined my perspective more honestly. Do the arguments for Results hold up under scrutiny for expected failures in modern systems?

This isn’t just blind advocacy. It’s an honest conceptual analysis of the arguments from both camps, examining which ones have meas…

Similar Posts

Loading similar posts...