4 ms·
Sorry that doesn't make any sense to me. If a method can't or shouldn't hand a condition it then it needs to declare itself as throwing that exception (or a wra
by flowerlad 6y ago
Sorry that doesn't make any sense to me. If a method can't or shouldn't hand a condition it then it needs to declare itself as throwing that exception (or a wrapper around it).
- withinboredom 6y agoThey said transitive. To me, they meant if you have 3 layers of deps, A -> B -> C and C now throws something, B doesn’t catch it or mark as throws. So now you have a failure. Obvs, you’d fix this immediately, but it’s still work that you have to do when you could have been doing something productive.
- ddek 6y agoHere's Hejlsberg on why C# doesn't have checked exceptions: https://www.artima.com/intv/handcuffs.html https://www.artima.com/intv/handcuffs.html.
- flowerlad 6y agoHejlsberg is an awesome compiler maker. His Turbo Pascal compiler was incredible -- in approx 30KB he wrote a compiler, full screen editor and library. He's not that good as a language designer. C# is basically a clone of Java with broken exception handling. Here's the problem with C# exceptions: https://web.archive.org/web/20041201011903/http://www.geocities.com/csharpfaq/exceptions.html https://web.archive.org/web/20041201011903/http://www.geocit...