Re: ZCA proposal

Martin Aspeli <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
Gary Poster wrote:
> I think I could get fully behind the following proposal that others have made (Shane I think was one of several?).
> 
> IFoo.adapt(...)
> 
> IFoo.utility(...)

Thinking about it a bit, it strikes me that IFoo.adapt(context) may not 
be right. This reads "IFoo adapt context", which doesn't make sense. 
What I really want to hear is "context adapted to IFoo". So maybe it's

   IFoo.adapting(context)?
   IFoo.adapterFor(context)?
   IFoo.adapter(context)?

Just thinking out loud.

Thinking out loud further, I think I may actually prefer IFoo.instance() 
instead of .utility(), but maybe that debate is already passed. 
.utility() is OK too.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.