xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Let Elements implement java.lang.Iterable
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Peter Ertl <pertl AT gmx.org>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Let Elements implement java.lang.Iterable
- Date: Mon, 10 Mar 2008 20:36:36 -0700
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/
-
[XOM-interest] Let Elements implement java.lang.Iterable,
Peter Ertl, 03/10/2008
-
Re: [XOM-interest] Let Elements implement java.lang.Iterable,
Elliotte Harold, 03/10/2008
- Re: [XOM-interest] Let Elements implement java.lang.Iterable, Randall R Schulz, 03/11/2008
- Re: [XOM-interest] Let Elements implement java.lang.Iterable, Dave Pawson, 03/11/2008
- Re: [XOM-interest] Let Elements implement java.lang.Iterable, Steve Loughran, 03/18/2008
-
Re: [XOM-interest] Let Elements implement java.lang.Iterable,
Elliotte Harold, 03/10/2008
Archive powered by MHonArc 2.6.24.