[XML-SIG] The '_' thingy

Martijn Faassen faassen@vet.uu.nl
Mon, 10 Jul 2000 17:06:02 +0200


Jim Fulton wrote:
> Mike Olson wrote:
[snip]
> > Jim, I don't see your arguements.
> > 
> > How is n.firstChild less efficent the n.get_firstChild() ?
> 
> It's not if you constrain the implementation to store the first 
> child. If an implemantaion chooses not to store the first 
> child indepenent of the chidren, then the implementatin must
> implement __getattr__.  It's worse for (the few) settable attributes, 
> because the implementation *must* implement the attributes as stored 
> attributes or implement __setattr__.

Agreed here from the MetaKit DOM perspective. As I pointed out elsewhere,
the actual data is stored in tables in my DOM implementation, and 
therefore if there are attributes, they all have to be computed.

And as said elsewhere, I'm for accessor methods.

Regards,

Martijn