cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Holz <h...@fiz-chemie.de>
Subject Re: Zope vs. Cocoon
Date Wed, 27 Feb 2002 22:59:14 GMT
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.

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


--
Martin Holz  <holz@fiz-chemie.de>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN

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


Mime
View raw message