Comment

Comment by wvenable

> One of the biggest flaws in C#, in my experience, is lack of checked exceptions.

I couldn't disagree more. Checked exceptions in Java have ruined a generation of programmers.

The truth is, under checked exceptions, to satisfy the compiler the function that you called would declare that it throws a SomeModuleException and the programmer who wrote that function would put all his code in try/catch block that catches all errors and rethrows a SomeModuleException with the real exception passed as the cause.

Checked exceptions just don't work.

parent wvenable 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton