[swift-evolution] [Draft] Apply -ed/-ing rule to core functional methods (e.g. filter => filtered)

Dave Abrahams dabrahams at apple.com
Mon Jun 20 16:27:00 CDT 2016


on Thu Jun 16 2016, Patrick Pijnappel <swift-evolution at swift.org> wrote:

>>
>> -1, for the same reasons stated on the thread. These are neither
>> guaranteed to be mutating or non-mutating until you get to Collection.
>> Changing map() to mapped() would be lying to the developer some of the
>> time about the mutability of the interface.
>> -DW
>
> Actually the -ed/-ing suffix is *not *intended to guarantee
> non-mutatability. 

I beg to differ.  “<noun>, <verb>ed” is still a noun phrase and as such
should not have side-effects, which rules out mutation.

-- 
Dave



More information about the swift-evolution mailing list