[ZPT] Re: [Zope-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

Jim Fulton jim at zope.com
Fri May 21 12:02:47 EDT 2004


Stephan Richter wrote:
> On Friday 21 May 2004 09:07, Jim Fulton wrote:
> 
>>So far the cast syntax seems to be the most popular:
>>
>>   (adaptername)ob      (dc)context/title
> 
> 
> Why don't we use adaptername(ob)? Then it looks exactely like in Python! Less 
> to memorize.

Because that would be the top of a slippery slope.

People would want:

   callable(arg1, arg2, arg3)

eventually:

   foo/bar/callable(x/y, a/b/c)/q/r

which is arguably the path to madness.

A number of folks replid negatively to this idea when
it was noted in the proposal.

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 ZPT mailing list