[swift-evolution] for in? optionalCollection {
Tino Heth
2th at gmx.de
Sun Feb 12 07:57:01 CST 2017
> I have a question for you. How do you think we could use this pattern in the generalised situation:
In general ;-) I like things that can be used universally much more than a huge number of special cases.
But here, I'm not sure if it's not an increase of complexity:
I often if statements with several stages of unpacking, and when there is something similar for loops, imho it should act in the same way:
for let array? = test, i in array {
This would preserve the right order and keep the where clause reserved as it is now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170212/b5c21e73/attachment.html>
More information about the swift-evolution
mailing list