> No.  My argument is that map on collections and on optionals are two
> completely different things.  They unify on a level that does not
> exist in Swift (higher-kinded types).

+1000.

Optional.map is already highly unfortunate. It makes optional arrays especially 
painful to deal with, but even in general, you can no longer glance at the code 
and see which parts are dealing with many items and which parts are dealing 
with single items.

I would definitely support renaming Optional.{map,flatMap}.

A.

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

Reply via email to