cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: Defining Source Interfaces
Date Wed, 08 Jan 2003 16:42:24 GMT
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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message