> On Nov 7, 2017, at 3:35 PM, Kevin Ballard via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> It's a fairly minor issue, one that really only affects new Swift programmers 
> anyway rather than all users
> 

I’ve seen enough misuse of flatMap at this point to be confident saying it’s 
not just a beginner error. Experienced programmers (as experienced as any Swift 
programmer can be for a 4-year-old language) frequently use flatMap when they 
mean map. It happens in Apple codebases, and in popular frameworks. Even with 
knowledgeable programmers, the explanation of the mistake they’ve made often 
takes a couple of minutes to sink in. The overload is actively confusing across 
the spectrum.


_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to