> 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.
Have you tried Rust? It’s nice in this regard; variables are immutable unless explicitly declared mutable.
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.