[swift-evolution] Review for: Remove C-style for-loops with conditions and incrementers

thorsten at portableinnovations.de thorsten at portableinnovations.de
Tue Dec 8 09:42:38 CST 2015


Shouldn't there be a reversed, i.e. a computed var returning a new range, so we could write the following with only half the parantheses:

(a..<b).reversed

This would look nice and understandable to me.

-Thorsten

> Am 07.12.2015 um 23:37 schrieb Jacob Bandes-Storch via swift-evolution <swift-evolution at swift.org>:
> 
> Of course Nate's example "(a..<b).reverse()" works too, but it's far too many parentheses for my taste.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151208/921a7b00/attachment.html>


More information about the swift-evolution mailing list