Actually, I misunderstood your original suggestion a little. It's quite
late here in England!
Emmanuel Bourg wrote:
What prevents the debugging of a library 1.3 compatible with a 1.5
source ? The line numbers don't match ?
Yeah, pretty much. But there are a number of other little things that
e
Chris Lambrou wrote:
On the other hand, if you're simply talking about borrowing some of the
1.5 syntax, particularly the new for loop constructs, and somehow using
it in collections, are you really proposing the use of a source
preprocessing stage as part of the collections build process, simpl
Emmanuel Bourg wrote:
for (Configuration config : configList)
{
config.clearProperty();
}
That makes me think, couldn't we use the Java 1.5 syntax while
producing Java 1.3 compatible byte code ?
Emmanuel Bourg
We've discussed a 1.5 version of collections some time ago. The upshot
was that w
Eric Pugh wrote:
Things like this are cool.. But.. within the context of java, they just
seem more difficult to read.. Requiring the user to know what an
InvokerClosure is and does. It's neat.. I just haven't seen the use case
that requires it...
Well the code is still readable imho, it reads
Eric Pugh wrote:
Is the final result:
CollectionUtils.forAllDo(configList, new InvokerClosure("clearProperty",
String.class, key));
Compared to the original really that much cleaner?:
for (Iterator i = configList.iterator(); i.hasNext();)
{
Configuration config = (Configuration) i.next();
config.c
Emmanuel Bourg wrote:
Also the Class[] and Object[] are quite cumbersome, that would be nice
to add methods/constructors to invoke simple methods with only one or
two parameters. Thus my example could look like this:
CollectionUtils.forAllDo(configList, new
InvokerClosure("clearProperty", Strin
Is the final result:
CollectionUtils.forAllDo(configList, new InvokerClosure("clearProperty",
String.class, key));
Compared to the original really that much cleaner?:
for (Iterator i = configList.iterator(); i.hasNext();)
{
Configuration config = (Configuration) i.next();
config.c