[swift-evolution] Strings in Swift 4
tseitz42 at icloud.com
Wed Feb 1 15:39:50 CST 2017
> Am 01.02.2017 um 19:37 schrieb Ben Cohen via swift-evolution <swift-evolution at swift.org>:
> there is a legitimate quibble here that this will translate into arr[0..<arr.endIndex], but the … kind of implies arr[0…arr.endIndex] which is invalid. But 0..< is ugly so we should ignore this quibble for the sake of aesthetics
If we just say that ... implies arr[0...arr.lastIndex] where arr.lastIndex is the last valid index then it is neither ugly nor invalid.
More information about the swift-evolution