cross-posted from: https://lemmy.ml/post/39334581

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 9 months ago

That variable is only created when the function is run, and it holds a constant value for the entirety of its lifetime.

It is literally constant from the perspective of the computer executing it. You're the one adding an extra layer of expectation here.

  • source
  • parent