Boxing function types
Neal Gafter
neal at gafter.com
Sun Nov 22 08:37:11 PST 2009
On Sun, Nov 22, 2009 at 2:33 AM, Reinier Zwitserloot <
reinier at zwitserloot.com> wrote:
> Another point I'm noticing when looking through PA's classes is that a lot
> of suggested duplication is unfair reasoning. For example, PA has separate
> interfaces for MinReducer and MaxReducer. They are both SAMs with the same
> signature on the one method. Clearly the design of PA fundamentally
> disagrees with the notion that, for situations where closures work better,
> giving the types of the closures a name and a place for javadoc is not
> useful.
>
Reinier-
MinReducer and MaxReducer were concrete classes, not abstract interfaces.
The BGGA port of ForkJoin did not change the shape of those classes:
http://www.javac.info/jsr166z/jsr166z/forkjoin/Ops.MaxReducer.html.
However, those classes are no longer part of the ParallelArray API set,
replaced by two static methods:
http://gee.cs.oswego.edu/dl/jsr166/dist/extra166ydocs/extra166y/CommonOps.html#maxReducer%28java.util.Comparator%29
.
Cheers,
Neal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091122/e2c42503/attachment.html
More information about the closures-dev
mailing list