[XOM-interest] Let Elements implement java.lang.Iterable
Elliotte Harold
elharo at metalab.unc.edu
Mon Mar 10 23:36:36 EDT 2008
You know, I was about to say "Not going to happen as long as Java allows
type-erasure", but now that I think about it for 30 seconds, does that
matter? I could expose Iterable<Node> without actually compromising
XOM's type-safety. What do people think?
I'm still not convinced this is a good idea. For one thing I expect
people would be surprised by just what an Element iterated over, no
matter what I picked.
Also it would tie XOM to Java 5, and I'm not quite ready to do that yet.
If I do this it would probably be in 1.3.
--
Elliotte Rusty Harold elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
More information about the XOM-interest
mailing list