r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

87 comments sorted by

View all comments

Show parent comment

1

u/wiseIdiot Jan 03 '19

No, it's almost the same as putting code after the loop. The difference is that you can access loop variables, so it's useful for when you want to do something using them but don't want to change their scope.