commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Commons Collections and Generics
Date Tue, 03 Apr 2012 17:22:07 GMT
On Tue, Apr 3, 2012 at 1:12 PM, Matt Benson <gudnabrsam@gmail.com> wrote:

> Hi David,
>  [collections] has had generics in its trunk for years, but none of
> its developers, myself included, have had time to get this rather
> large codebase fully ready for a release.  In any event, the general
> idea in Commons is that [collections]' functor code is
> semi-deprecated;


That's a matter of opinion of course.

For me, coding with functors in Java is not pretty and I'd rather wait for
closures in Java 8. A generics version of collection is reasonable but, as
Matt notes, it's a matter of wanting to put the time in.

Gary


> we will recommend instead the use of the [functor]
> component AFTER we get *that* component ready for release.
>
> Sorry for the scylla/charybdis situation,
> Matt
>
> On Tue, Apr 3, 2012 at 11:14 AM, David Cogen <cogen@ll.mit.edu> wrote:
> > Please correct me if I am mistaken about this:
> >
> > There appears to be no generics-aware version of Commons Collections
> within
> > Apache Commons. For example, there is no interface Predicate<T> in
> version
> > 3,2,1; only a Predicate.
> >
> > But I have for several years been using a generics-aware rewrite of
> Commons
> > Collections; see https://github.com/megamattron/collections-generic. I
> have
> > been very satisfied with it, and use it exclusively in preference to the
> > Apache Commons version, but I expected that this would be adopted by
> Apache
> > Commons by now. But apparently it is not?
> >
> > Am I correct about this? If so, can anyone explain why it has not, or if
> > there are plans to do so, or shed any other insight about this?
> >
> > Thanks so much.
> > David Cogen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message