[swift-evolution] [swift-evolution-announce] [Review] SE-0187: Introduce Sequence.filterMap(_:)
Johannes Weiß
johannesweiss at apple.com
Wed Nov 8 18:35:50 CST 2017
+1 and agree with Stephen on why
> On 8 Nov 2017, at 8:17 am, Stephen Celis via swift-evolution <swift-evolution at swift.org> wrote:
>
> +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.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
More information about the swift-evolution
mailing list