News for hackers. Stuff that matters.
Re:John Carmack on Mutable Variables by estimator7292 on Thursday October 30, 2025 @11:40PM (#45768166)
Your IDE probably supports this as an explicit action. JetBrains has a feature that can find all reads and writes to a variable
Re:John Carmack on Mutable Variables by Denvercoder9 on Friday October 31, 2025 @03:48AM (#45769329)
It also has the ability to style mutated variables differently.
Re:John Carmack on Mutable Variables by greenicon on Friday October 31, 2025 @04:40AM (#45769672)
Yes, depending on your highlighting scheme. Not every highlighting scheme shows this by default, unfortunately.

To me, this seems initially like some very minor thing, but I find this very helpful working with non-trivial code. For larger methods you can directly discern whether a not-as-immutable-declared variable behaves immutable nonetheless.