[Seaside] Re: #children
avi.bryant at gmail.com
Mon Mar 28 17:42:07 CEST 2005
On Mon, 28 Mar 2005 17:55:13 +0300, Andrei N.Sobchuck
<andrei.sobchuck at gmail.com> wrote:
> Yar Hwee Boon <hboon at motionobj.com> wrote:
> YHB> Would it be a good practice to have a default implementation that
> YHB> construct this list from the component's (and parents) instance
> YHB> variables?
> What about to hold all components in a dictionary?
I tend to prefer dynamic state (calculating the #children on the fly)
to this kind of static approach (where you have to make sure to keep
that dictionary current), as long as there aren't performance reasons
for it. So I don't think I would want that as the default, but it
would certainly be one reasonable way to implement #children for a
subclass of Component.
More information about the Seaside