2 ms·
> 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
by cobbzilla 4y ago
> 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.
- kaashif 4y agoYeah, 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.