I mean that *IF* we were to rename ‘map’ to ‘mapped’, the compiler would catch 
this and could recommend the new name.  Even if we add a mutating version 
called ‘map’, it would still catch this case because the mutating version would 
have a void return.

Thanks,
Jon

> On Jun 16, 2016, at 4:57 AM, Brent Royal-Gordon <[email protected]> 
> wrote:
> 
>> The signatures are also different, so:
>> 
>> let newList = list.map(…)
>> 
>> would throw an error because I have the signature wrong.
> 
> I'm not sure what you mean by this. What is the error? Why? Does it have 
> something to do with the code you imagine is elided by the ellipses?
> 
> -- 
> Brent Royal-Gordon
> Architechies
> 
> 

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

Reply via email to