xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: jcowan AT reutershealth.com
- Cc: xom-interest AT lists.ibiblio.org
- Subject: [XOM-interest] hasChildren vs. getChildCount == 0
- Date: Thu, 5 Feb 2004 07:18:46 -0500
At 2:14 PM -0500 2/2/04, jcowan AT reutershealth.com wrote:
1) I'm now going to argue that hasChildren should be removed in favor of
using getChildCount() == 0. In a proper JIT they should be exactly
the same at run time, and it's really trivial to write one's own
method hasChildren(Node n) if you must have it.
I sort of like hasChildren(), but when I marked it package protected in the code, hardly anything broke except a few unit tests that were testing hasChildren(). None of the samples broke, which is telling. Therefore I'm leaning toward removing it. If anyone wants to argue in favor of keeping hasChildren(), speak up now. In fact, if you have an opinion either way, let me know. Whose in favor of hasChildren, and who thinks it should go? The question on the table is whether we should delete hasChildren. Vote now.
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
-
Re: [XOM-interest] XOM 1.0d23 Last Call
, (continued)
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
jcowan, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, John Cowan, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Bradley S. Huffman, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
John Cowan, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, Bradley S. Huffman, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
John Cowan, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
jcowan, 02/02/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, Bill de hÓra, 02/02/2004
-
[XOM-interest] Put methods,
Elliotte Rusty Harold, 02/05/2004
- Re: [XOM-interest] Put methods, jcowan, 02/05/2004
-
[XOM-interest] hasChildren vs. getChildCount == 0,
Elliotte Rusty Harold, 02/05/2004
-
Re: [XOM-interest] hasChildren vs. getChildCount == 0,
Dirk Bergstrom, 02/05/2004
- Re: [XOM-interest] hasChildren vs. getChildCount == 0, Bill de hÓra, 02/05/2004
- Re: [XOM-interest] hasChildren vs. getChildCount == 0, Janek Bogucki, 02/09/2004
-
Re: [XOM-interest] hasChildren vs. getChildCount == 0,
Dirk Bergstrom, 02/05/2004
- [XOM-interest] UNDECLARED vs. CDATA, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] Namespace methods, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] Builder issues, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] ID or identifier, Elliotte Rusty Harold, 02/05/2004
- [XOM-interest] NodeFactory issues, Elliotte Rusty Harold, 02/06/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, Elliotte Rusty Harold, 02/06/2004
- Re: [XOM-interest] XOM 1.0d23 Last Call, Elliotte Rusty Harold, 02/11/2004
-
Re: [XOM-interest] XOM 1.0d23 Last Call,
Elliotte Rusty Harold, 02/02/2004
Archive powered by MHonArc 2.6.24.