Extending Collector to handle a post-transform
Brian Goetz
brian.goetz at oracle.com
Mon Jun 17 11:19:57 PDT 2013
I just took a swing at moving throwingMerger to Map. It wasn't a
perfect fit there either -- users may well ask "why would one use merge
if you are going to throw on duplicates?" Feeling YAGNI about this
right now.
On 6/17/2013 11:36 AM, Brian Goetz wrote:
>> +1 on removing first/last wins mergers.
>>
>> I am pausing a little on the throwingMerger. We capture the most
>> important case of throw-based merging in the 2 arg to{Concurrent}Map
>> function, but what if someone wants to switch from the 2 arg to the 4
>> arg method to change the map impl?
>>
>> Perhaps we can move throwingMerger to Map renamed to match the
>> wording on Map.merge ?
>
> Yes, I think that's a better place for mergers.
More information about the lambda-libs-spec-observers
mailing list