Re: Type-safe iteration over the DOM in DOM 2 & 3?

After a lot of discussion I think we have concluded that there is no
simple way to use Visitor in this context.

Jim.

Joseph Kesselman wrote:
> 
> >Couldn't it be done with something like:
> ...
> >it simply see what kind of parameter it got and act accordinaly
> 
> Sure. But the original request was that we find a way to eliminate that
> runtime typecheck. If you're going to do the switch, you might as well do
> it in the scanning loop rather than in the object, for reasons previously
> discussed.
> 
> I've lost track -- Have we returned to a consensus that the Visitor design
> pattern is not an unquestionable win after all? Or are there still points
> we need to analyse?
> 
> ______________________________________
> Joe Kesselman  / IBM Research

-- 

____________________________________________________________
James Melton                 CyLogix
609.750.5190                 609.750.5100
james.melton@cylogix.com     www.cylogix.com

Received on Monday, 26 March 2001 10:56:04 UTC