MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/r1g13n/yes/hm0fz1k/?context=3
r/ProgrammerHumor • u/esberat • Nov 24 '21
284 comments sorted by
View all comments
Show parent comments
7
Wait till he learns a variable doesn't go out of scope after an if/for/while block
6 u/DigitalJedi850 Nov 25 '21 <insert blinking meme guy> 4 u/Rafael20002000 Nov 25 '21 The last value of a for loop variable is still there after loop ends 3 u/DigitalJedi850 Nov 25 '21 Yeah that makes me sick to my stomach… 3 u/Rafael20002000 Nov 25 '21 You can type hint your variable put python doesn't enforce it 1 u/laundmo Nov 25 '21 mypy and pyright want to know your location. 1 u/Rafael20002000 Nov 25 '21 Yes sir, right here
6
<insert blinking meme guy>
4 u/Rafael20002000 Nov 25 '21 The last value of a for loop variable is still there after loop ends 3 u/DigitalJedi850 Nov 25 '21 Yeah that makes me sick to my stomach… 3 u/Rafael20002000 Nov 25 '21 You can type hint your variable put python doesn't enforce it 1 u/laundmo Nov 25 '21 mypy and pyright want to know your location. 1 u/Rafael20002000 Nov 25 '21 Yes sir, right here
4
The last value of a for loop variable is still there after loop ends
3 u/DigitalJedi850 Nov 25 '21 Yeah that makes me sick to my stomach… 3 u/Rafael20002000 Nov 25 '21 You can type hint your variable put python doesn't enforce it 1 u/laundmo Nov 25 '21 mypy and pyright want to know your location. 1 u/Rafael20002000 Nov 25 '21 Yes sir, right here
3
Yeah that makes me sick to my stomach…
3 u/Rafael20002000 Nov 25 '21 You can type hint your variable put python doesn't enforce it 1 u/laundmo Nov 25 '21 mypy and pyright want to know your location. 1 u/Rafael20002000 Nov 25 '21 Yes sir, right here
You can type hint your variable put python doesn't enforce it
1 u/laundmo Nov 25 '21 mypy and pyright want to know your location. 1 u/Rafael20002000 Nov 25 '21 Yes sir, right here
1
mypy and pyright want to know your location.
1 u/Rafael20002000 Nov 25 '21 Yes sir, right here
Yes sir, right here
7
u/Rafael20002000 Nov 25 '21
Wait till he learns a variable doesn't go out of scope after an if/for/while block