RE: ISSUE-41/ACTION-97 decentralized-extensibility

On Sunday, October 18, 2009 8:53 AM, Tab Atkins Jr. wrote:
> On Sun, Oct 18, 2009 at 10:30 AM, Adrian Bateman <adrianba@microsoft.com>
> wrote:
> > On Saturday, October 17, 2009 11:34 PM, Jonas Sicking wrote:
> >> On Sat, Oct 17, 2009 at 4:54 PM, Tony Ross <tross@microsoft.com>
> wrote:
> >> > Another use case would be the ability to easily and
> >> > efficiently select the list of all elements in the document that the
> >> > library should act upon.
> >>
> > [snip]
> >>
> >> Not sure I understand the list-of-elements example.
> >
> > The scenario is that a library wants to process all elements in its
> namespace.
> 
> Why would it want to do so, though?  What sort of work can be done
> symmetrically on every element in a namespace?  Wouldn't it be more
> common to want to do particular types of work on particular elements
> instead?

For example, on page load a library needs to enumerate all the widgets on the page and set them up. Searching the whole document once for each element that the library supports is less efficient.

Received on Sunday, 18 October 2009 16:02:29 UTC