Lightweight interfaces instead of function types
Mark Thornton
mthornton at optrak.co.uk
Fri Feb 19 15:27:05 PST 2010
Reinier Zwitserloot wrote:
> On Fri, Feb 19, 2010 at 7:15 PM, Stephen Colebourne <scolebourne at joda.org>wrote:
>
>
>> Again, its a trade-off. The benefit for ParallelArray is that
>> Predicate or Transformer is IMO more meaningful to someone just
>> casually coming to the API than a random function type.
>>
>>
>>
> +1
>
> I'm still not entirely clear on the obsession of getting rid of _every_ type
> listed in ParallelArrays' Ops.java. DoubleMaxReducer as well as
> IntMaxReducer, that does feel rather awkward, but having a concept called a
> MaxReducer in the first place, that seems to mostly be a force for good.
>
>
It is the ones which enumerate their primitive type parameters that
smell (and constitute most of the 81 as result of the combinatorial
explosion of possibilities).
Mark
More information about the lambda-dev
mailing list