Whither FlatMapper?
Doug Lea
dl at cs.oswego.edu
Mon Apr 8 12:27:53 PDT 2013
On 04/07/13 19:01, Sam Pullara wrote:
> I'm a big fan of the current FlatMapper stuff that takes a Consumer. Much more
> efficient and straightforward when you don't have a stream or collection to just
> return. Here is some code that uses 3 of them for good effect:
I think the main issue is whether, given the user reactions so far, we
should insist on people using a generally better but non-obvious
approach to flat-mapping. Considering that anyone *could* write their own
FlatMappers layered on top of existing functionality (we could
even show how to do it as a code example somewhere), I'm with
Brian on this: give people the obvious forms in the API. People
who are most likely to use it are the least likely to be obsessive
about its performance. And when they are, they can learn about
alternatives.
-Doug
More information about the lambda-libs-spec-observers
mailing list