[swift-evolution] [Review] SE-0065 A New Model for Collections and Indices

Joe Groff jgroff at apple.com
Mon Apr 11 21:09:01 CDT 2016

> On Apr 11, 2016, at 1:02 PM, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
> on Mon Apr 11 2016, Stephen Canon <swift-evolution at swift.org> wrote:
>> Joe’s isn’t saying that “Indexes” is more common, rather that it’s regular (i.e.
>> follows the usual declension rule for plurals); there’s tradeoffs each way, but
>> using the regular plural might make it more familiar for some non-native
>> speakers/readers.
> Indexes also has the disadvantage of being a verb as well as a plural noun.

That thought did cross my mind, but I think the potential for verb/noun confusion seems pretty well handled by context. As a verb, "index" is most commonly transitive, so I'd expect 'foo.indexes' to be a property whose value produces indexes, and 'foo.indexes(...)', if it existed, to be some kind of predicate method.


More information about the swift-evolution mailing list