Re:John Carmack on Mutable Variables
by ErroneousBosh on Friday October 31, 2025 @06:49PM
(#45777571)
But that's just it, why would a copy ever happen? Why would you want a correct and an incorrect version of your variable hanging about?
[ Parent
| on HN ]
Re:John Carmack on Mutable Variables
by kubanczyk on Saturday November 01, 2025 @01:27PM
(#45783489)
Taking your point of view: you assigned a value1 to a name. Then you assigned a value2 to the same name.
You say that value2 is correct. It logically follows that value1 was incorrect. Why did you assign it then?
The names are free, you can just use a correct name every single time.
Re:John Carmack on Mutable Variables
by zaphirplane on Sunday November 02, 2025 @07:08AM
(#45789722)
Because the account owner withdrew money . The player scored a goal, the month ticked over, the rain started, the car accelerated, a new comment was added to the thread .
The world by definition mutates over time.