Why doesn't for-loop have it's own scope?

1 month ago 32

For the longest time I didn't know this but finally decided to ask, I get this is a thing and probably has been asked a lot but i genuinely want to know... why? What gain is there other than convenience in certain situations, i feel like this could cause more issue than anything even though i can't name them all right now.

I am also designing a language that works very similarly how python works, so maybe i get to learn something here.

submitted by /u/FUS3N to r/Python
[link] [comments]
Read Entire Article