[swift-evolution] Revisiting 0004 etc. - Swift deprecations

David Sweeris davesweeris at mac.com
Sat Apr 2 21:35:38 CDT 2016

> On Apr 2, 2016, at 20:49, Charles Srstka via swift-evolution <swift-evolution at swift.org> wrote:
> While this style works, and definitely can substitute for a classical for loop, it is not quite as nice, because it cannot limit i’s scope to the loop. The variable will be visible outside of the loop body.

I agree it's not as nice aesthetically, but does the loop variable being visible outside the loop cause any real-world problems?

- Dave Sweeris

More information about the swift-evolution mailing list