W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: Older Sibling?

From: David Brownell <david-b@pacbell.net>
Date: Wed, 01 Mar 2000 10:56:06 -0800
Message-ID: <38BD67C6.E55E1659@pacbell.net>
To: Miles Sabin <msabin@cromwellmedia.co.uk>
Cc: www-dom@w3.org
Miles Sabin wrote:
> 
> David Brownell wrote,
> > would you seriously expect DOM to save you the work of
> > writing such a simple subroutine?  If so, why?
> 
> How about: because some implementations might be able to
> provide an O(1) implementation, whereas an external routine
> would be likely to be O(number of siblings) or thereabouts.

The original comment was more along the lines of "can't do
this, why?  aaagh!" as I recall ... not the "it's too slow"
that you seem to be suggesting it was.

It's common that some special purpose task can be sped up by
putting it into infrastructure.  But that in itself is rarely
a compelling motivation for making it a "standard, everyone
must implement this" part of an infrastructure.  If everyone
has to pay for it, everyone _ought_ to benefit more or less
equally from it.

- Dave
Received on Wednesday, 1 March 2000 13:56:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT