[swift-evolution] C-style For Loops

Ray Fix rayfix at gmail.com
Fri Dec 4 15:59:07 CST 2015

Hi Erica,

One argument that I don’t see being made in your proposal is that the while statement provides an equivalent, more verbose form of C-style for loops.  

var i = 0
while (i < 10) {
  i += 1

I understand that one of the major goals of Swift is to be a language great to learn about computing.  Removing C-style loops doesn’t really diminished from this goal because the same thing can be taught with while.

Good luck,

Ray Fix

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151204/2d8ede2e/attachment.html>

More information about the swift-evolution mailing list