Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] RFE: Element.appendChild(String text) shouldreturn "this" for chaining

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: passani AT eunet.no
  • To: "Elliotte Rusty Harold" <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] RFE: Element.appendChild(String text) shouldreturn "this" for chaining
  • Date: Tue, 17 Aug 2004 15:12:59 +0200 (CEST)


Bruce Eckel sounds pretty disappointed about generics in Java.

http://mindview.net/WebLog/log-0050

he says ythat, given the way generics were introduced,
one just gets a shorthand
for casting objects, rather than anything as powerful at templates
in C++ (not that I really know what Templates are all about...)

Luca

> At 9:27 AM +0200 8/17/04, Stefan Matthias Aust wrote:
>
>
>>I'd love to use var-args for element construction
>>
>> Element element(String name, String... namesAndValues) {
>> ...
>> }
>>
>>but I'm not yet on 1.5.
>
> 1.5 is different enough that it might call (one day, not today) for a
> redesigned XOM API that takes advantage of its features like generics
> and enhanced for loops. The lack of generics in particular was a
> major driver in the XOM API. When I was talking about XOM Design
> Principles at Extreme Markup Languages in Montreal a couple of weeks
> ago one of the C++ people in the room kept saying, "But you could do
> this so much more simply if you used templates" and I had to keep
> reminding him that in Java I didn't have the option to design around
> templates. :-(
> --
>
> 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
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>





Archive powered by MHonArc 2.6.24.

Top of Page