on Tue Apr 12 2016, Brent Royal-Gordon <brent-AT-architechies.com> wrote:

>>> Huh, that clarifies something. How about the non-`ing` variants?
>>> 
>>>     collection.travel(5, from: i)
>>>     collection.stride(5, from: i)
>>>     collection.advance(i, by: 5)
>> 
>> Active verb phrases are reserved for methods with side-effects according
>> to the API guidelines.
>
> Is there *any* way of using a verb to indicate an argument is being
> modified? If not, I think that's a serious omission in the API
> guidelines.


  x.modify(&y)

seems to work just fine.

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

Reply via email to