On Wed, 8 Jan 2003, Sylvain Wallez wrote: > Carsten Ziegeler wrote: > > >Sylvain Wallez wrote: > > > > > > <snip/> > > >>And as far as code cleanliness is concerned, an "instanceof" test seems > >>more OOP to me than a isTraversable() method that tells us if is we have > >>the right to use getParent() and getChildren(). With a separate > >>interface, these methods do not exist if they do not make sense. > >> > >This is a point were a not really agree with. If I always have to do instanceof >tests and class casts, something is wrong with OOP then in my eyes. > > > > Following Stephen's example, I grep'ed instanceof on the whole 2.1 > source base and found... 388 of them !
Not that much for 2050 files or 436780 lines of code (including comments). So Carsten is right saying the sentence above. Giacomo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]