[swift-evolution] [Proposal] More lenient subscript methods over Collections
Vladimir.S
svabox at gmail.com
Tue May 10 00:48:51 CDT 2016
Sounds good for me.
How about:
a[bounded: -1 ..< 5] --> a[within: -1 ..< 5] (or a[inside: -1 ..< 5] )
a[optional: 0 ..< 5] --> a[checking: 0 ..< 5]
a[optional: 5] --> a[checking: 5]
?
On 10.05.2016 4:29, Brent Royal-Gordon wrote:
>> lenient -> keep "lenient:" ? "requested:" ? "optional:"?
>
> `checking:`, to indicate that the index will be checked before it's used?
>
More information about the swift-evolution
mailing list