[swift-evolution] What about renaming Optional.map to Optional.mapMe ?

David Sweeris davesweeris at mac.com
Mon Dec 5 23:18:58 CST 2016


> On Dec 5, 2016, at 9:17 PM, David Sweeris via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Dec 5, 2016, at 8:54 PM, Jay Zhao <zhaojianyin at icloud.com <mailto:zhaojianyin at icloud.com>> wrote:
>> 
>> What about mapUnwrapped ?
> 
> If the name is anything other than “map”, you already have to think of the “special” word. At that point, why not just unwrap it manually?
> _ = array2?.count
> vs
> _ = array2?.map {$0.count}
Oops, there shouldn’t be a “?" on the last line
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161205/fd71dd79/attachment.html>


More information about the swift-evolution mailing list