[swift-evolution] [swift-evolution-announce] [Review] SE-0187: Introduce Sequence.filterMap(_:)
Stephen Celis
stephen.celis at gmail.com
Wed Nov 8 10:17:37 CST 2017
+1
> On Nov 7, 2017, at 6:23 PM, John McCall <rjmccall at apple.com> wrote:
>
> • What is your evaluation of the proposal?
BJ summarized my thoughts nicely. I think “flatMap” in its current form is confusing to both newcomers and functional programmers familiar with the nomenclature. I’ve been aware of this disparity and thought about it for awhile. I typically redefine “flatMap” as “mapOptional” in my projects for clarity.
> • Is the problem being addressed significant enough to warrant a change to Swift?
I think so! It improves the user experience in a significant way to those that encounter the function in the wild.
> • Does this proposal fit well with the feel and direction of Swift?
Yes.
> • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
It fits in well. Swift’s current extra implementation of “flatMap” is the anomaly.
> • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
Gave a quick reading to the proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171108/f116e346/attachment.html>
More information about the swift-evolution
mailing list