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.
<[EMAIL PROTECTED]>                             Friedrich Nietzsche
--------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to