> On Apr 2, 2016, at 20:49, Charles Srstka via swift-evolution > <[email protected]> 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 _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
