[Zope3-dev] Need help with jargon

Jim Fulton jim at zope.com
Thu Apr 1 12:23:20 EST 2004


Phillip J. Eby wrote:
> At 10:47 AM 4/1/04 -0500, Jim Fulton wrote:
> 
>> The second kind of adapter:
>>
>> - Adapts any number of objects (0 or more)
>>
>> - Is named. It adapts to an interface qualified by a name,
>>   which defaults to ''
>>
>> - Does not consider whether any of the adapted objects
>>   already provide the desired interface and does not look
>>   for a __conform__ method on any of the adapted objects.

I should have added:

- A new object is always created

>> We need names for these.  These names should probably be reflected
>> in the api.
>>
>> Suggestions?
> 
> 
> How about "utility"?

We're already using the word "Utility".  A utility is a stand-alone
object. It doesn't adapt something else.

> Although utilities have historically been looked up via just an 
> interface, one could consider the historic definition as the special 
> case of no parameters and the empty name.
> 
> Perhaps the new jargon would be that utilities may now be "named" and 
> "parameterized".  The name and parameters are provided to the utility's 
> factory.

Maaaaybe.

I'll note that another name for these might be "multimethods". :)

But I was thinking of adjectives for "adapter".

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org




More information about the Zope3-dev mailing list