News for hackers. Stuff that matters.
Re:John Carmack on Mutable Variables by gf000 on Friday October 31, 2025 @05:45AM (#45770104)
It's because you want a tasteful mix of both.

I believe Scala was pretty ahead here by building the language around local mutability with a general preference for immutable APIs, and I think this same philosophy shows up pretty strongly in Rust, aided by the borrow checker that sort of makes this locality compiler-enforced (also, interior mutability)

Re:John Carmack on Mutable Variables by dionian on Friday October 31, 2025 @10:14AM (#45772209)
Worth nothing that idiomatic scala uses constants by default, variables are discouraged and frankly rare.