cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Zope vs. Cocoon
Date Thu, 28 Feb 2002 15:30:39 GMT
Martin Holz wrote:
> 
> Stefano Mazzocchi wrote:
> 
> > > http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPag
> > >e )
> >
> > Uh, cool, sounds like the new Zope3 will be much more similar to Cocoon2
> > architecturally, at least it will be component-based and
> > interface-driven.
> >
> > But given that Python doesn't have interfaces, how do you plan to have
> > polymorphism? thru reflection?
> >
> 
> Any method call in python is done thru reflection.
> Calling a method in python means looking in the attribute hashmap
> of the object for a function object of that name.  You can modify the values
> of the hashmap and even add or delete methods at runtime.
> 
> Python interfaces, are defined thru documentation only,  not  a static type
> system. That's very handy for a language, which's greatest strength is rapid
> prototying.

Yes, well, might be handy for rapid prototiping, but I consider it a
limitation because I consider strong type safety a must in order create
solid architectures.

> Of course you loose compile time type checking, but that's true for
> Avalon components too.

Yes, good point.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message