> On Apr 5, 2016, at 1:54 PM, Dave Abrahams <[email protected]> wrote:
> IMO this:
> 
>  (-9...0).reverse()
> 
> is better than 
> 
>  stride(from: 0, to: -10, by: -1)
> 
> What do you think?

The latter better reflects an author's actual intent. The former depends on 
implementation details, which can be hazy, especially, around the edge cases. 
It is quicker to read, understand, and verify that the latter is what is meant.

-- E

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to