Cipherd@lemmy.ml to Programmer Humor@programming.dev · 2 months agofunctionslemmy.mlimagemessage-square99fedilinkarrow-up1561arrow-down18file-text
arrow-up1553arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 2 months agomessage-square99fedilinkfile-text
minus-squaremasterspace@lemmy.calinkfedilinkEnglisharrow-up1·2 months agoThat 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.
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.