News for hackers. Stuff that matters.
Re:John Carmack on Mutable Variables by didibus on Friday October 31, 2025 @12:32PM (#45773913)
It's more nuanced, because the shadowing is block-local, so when the lexical scope exits the prior bindings are restored.

I think in practice this is the ideal middle ground of convenience (putting version numbers at the end of variables being annoying), but retaining mostly sane semantics and reuse of prior intermediate results.

There are no comments on this comment yet.