Cipherd@lemmy.ml to Programmer Humor@programming.dev · 4 days agofunctionslemmy.mlimagemessage-square119fedilinkarrow-up1654arrow-down19file-textcross-posted to: [email protected]
arrow-up1645arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 4 days agomessage-square119fedilinkfile-textcross-posted to: [email protected]
minus-squaremasterspace@lemmy.calinkfedilinkEnglisharrow-up2·3 days 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.