3 ms·
> Let's say Java had no checked exceptions. I could just write IO code without doing a try since no one is forcing me to check anything. Any decent C# linter w
by scarface_74 3y ago
> Let's say Java had no checked exceptions. I could just write IO code without doing a try since no one is forcing me to check anything.
Any decent C# linter will notice that the class exposes (IDisposable) and warn you that you should at least be wrapping it in a “using” block.
- invalidname 3y agoThat's true for Java too. But that's only a part of the problem which is why I gave the second example. Also, notice that a linter and a compiler error are different. I agree that people *should* always use a good linter and IDE. The reality is sadly far from that.