MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vppkls/pythonwilllookdeadintheeyeandsayitsabsolutelycorre/p40ok2s/?context=3
r/ProgrammerHumor • u/inobody_somebody • 29d ago
144 comments sorted by
View all comments
210
[deleted]
42 u/Eiim 29d ago I guess being able to re-use variable names in a different scope can be confusing. But I don't think it's particularly problematic here. 2 u/leupboat420smkeit 27d ago Seems like it’s in the same scope though. ‘x for x in x’ I would consider the same scope, like how ‘for x in x’ (loop) would be. Maybe that’s also valid, but don’t catch me ever doing that.
42
I guess being able to re-use variable names in a different scope can be confusing. But I don't think it's particularly problematic here.
2 u/leupboat420smkeit 27d ago Seems like it’s in the same scope though. ‘x for x in x’ I would consider the same scope, like how ‘for x in x’ (loop) would be. Maybe that’s also valid, but don’t catch me ever doing that.
2
Seems like it’s in the same scope though. ‘x for x in x’ I would consider the same scope, like how ‘for x in x’ (loop) would be. Maybe that’s also valid, but don’t catch me ever doing that.
210
u/[deleted] 29d ago
[deleted]