News for hackers. Stuff that matters.
Re:Rust Is Eating JavaScript by anon-3988 on Sunday February 16, 2025 @10:17AM (#43068666)
> 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?

Re:Rust Is Eating JavaScript by lenkite on Sunday February 16, 2025 @10:27AM (#43068747)
If you add a checked exception to a function, your code will not compile and the compiler errors will tell you everything that is affected.
Re:Rust Is Eating JavaScript by abraxas on Sunday February 16, 2025 @10:25AM (#43068716)
Java 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.

Re:Rust Is Eating JavaScript by tjalfi on Sunday February 16, 2025 @01:49PM (#43070482)
TypeScript definitely won't add checked exceptions, because Anders Hejlsberg considers them a mistake[0].

[0] https://www.artima.com/articles/the-trouble-with-checked-exc...