The following code seems to work just fine in swift:
for (var i = 0, x = 0; i < 10; i++, x++) {
println ("i is \(i) x is \(x)");
}
1) I can not find any documentation that says the comma operator is supported or not.
2) The swift-playground sometimes crashes when modifying a for loop to include a second counter (, x = 0).
I'm I wrong to expect the above code to work, or is this just a playground issue? Any reference to documentation on this would be appreciated.