News for hackers. Stuff that matters.
Re:Paving the on-ramp to Java by cobbzilla on Thursday September 29, 2022 @09:42AM (#33020497)
> I just want everything to be immutable unless mutability is really truly needed

Have you tried Rust? It’s nice in this regard; variables are immutable unless explicitly declared mutable.

Re:Paving the on-ramp to Java by kaashif on Saturday October 01, 2022 @11:31PM (#33052566)
Yeah, and I really like Rust. Rust has its mistakes but having RAII and immutability by default goes a very long way.

But it's not terribly easy or even a good idea to switch from Java to Rust at a real company that has no time to rewrite libraries, has to hire developers, and so on.