[Zope-dev] singleton vs. utility (was Re: implementing zope.component 4.0)

Lennart Regebro regebro at gmail.com
Tue Dec 1 03:17:05 EST 2009


On Tue, Dec 1, 2009 at 01:16, Gary Poster <gary.poster at gmail.com> wrote:
> I don't love "singleton."  I think it is better than "utility."  I agree at least that it probably isn't better enough to introduce confusion.  I'd be more insistent on "singleton", or finding a better term than either of them, if this were a fresh API.

I wonder if the best isn't to make the documentation clearly say
"Utilties are singleton components that can be looked up per
interface".

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64


More information about the Zope-Dev mailing list