Re: RFR[8238286]: 'Add new flatMap stream operation that is more amenable to pushing’
forax at univ-mlv.fr
forax at univ-mlv.fr
Thu Jun 25 21:40:16 UTC 2020
----- Mail original -----
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>, "Patrick Concannon" <patrick.concannon at oracle.com>
> Cc: "core-libs-dev" <core-libs-dev at openjdk.java.net>
> Envoyé: Jeudi 25 Juin 2020 22:04:27
> Objet: Re: RFR[8238286]: 'Add new flatMap stream operation that is more amenable to pushing’
> On 6/24/2020 7:32 PM, Remi Forax wrote:
>> I don't really like the name "mapMulti", because flatMap can also be called
>> mapMulti.
>
> Public service announcement: remember just how frustrating it is for
> Patrick to have put in all this work and get only comments like "I don't
> like the name."
>
> If you think everything about it is fantastic, except maybe the name,
> then you can say so, and then maybe make a comment on the name -- or not.
>
> If you have anything more substantial to say, please don't comment on
> bikeshed colors like naming before you've made your more substantial
> comments -- or before everyone else has as well. Because all that will
> happen is we'll have 100 replies-to-replies about the name, and poor
> Patrick will get no substantive comments.
you can also read after the "i don't like the name", there is an explanation, it starts with "because ..."
>
> (Personally, I think the name is fine. It is reminiscent of LinQ's
> "SelectMany", which is their flatMap.)
yes, that's exactly my point, flatMap can be called mapMulti too and my fear is that people will use mapMulti were they should use flatMap and vice-versa, mapMulti is not a good enough name.
also you're not fair because i'm not the only one that find the name is not good and you have cherry picked only one sentence of my reply.
Rémi
More information about the core-libs-dev
mailing list