[Zope3-dev] Re: ObjectHub notes: ruid vs hid vs. ...
Steve Alexander
steve@cat-box.net
Tue, 29 Oct 2002 09:28:06 +0000
Chris Withers wrote:
> Steve Alexander wrote:
>
> >
> > +1
> >
> > Although, why not go with attributes rather than accessor methods?
> >
> > So, just SomeEvent.hubId rather than SomeEvent.getHubId().
>
> You know that not having that as a method will come back and bite in
> the end and require some such computed attribute nastiness ;-)
I disagree. The attribute will be used many times, and will be
implemented only a very few times.
In the unlikely case that some computation is required to get a hubId,
we can use a Property descriptor in place of a simple attribute.
--
Steve Alexander