3 ms·
> I'm quite dismayed to say that this has been a feature of any Java developer setup for the past 25 years. Yet hipsters threw it all in the garbage when node.j
by anon-3988 2y ago
> I'm quite dismayed to say that this has been a feature of any Java developer setup for the past 25 years. Yet hipsters threw it all in the garbage when node.js took off and are only now starting to approach feature parity with a 2002 JBuilder or Eclipse of the same era.
Last I checked If I change a signature or something in Java, I am not guaranteed the whole thing "checks". If I add a new exception to a function, how do I know what else is effected?
- abraxas 2y agoJava checked exceptions are (were?) a wonderful feature that was wrongly dissed for the same reason Java types and IDEs were dissed. It forced people to handle exceptions or pass them up the call stack but they had to be dealt with. And IDEs were aware of them so not catching or rethrowing was immediately flagged by the IDE. I give it five years until Typescript and peers adds checked exceptions.
- tjalfi 2y agoTypeScript definitely won't add checked exceptions, because Anders Hejlsberg considers them a mistake[0]. [0] https://www.artima.com/articles/the-trouble-with-checked-exceptions https://www.artima.com/articles/the-trouble-with-checked-exc...
- lenkite 2y agoIf you add a checked exception to a function, your code will not compile and the compiler errors will tell you everything that is affected.