Re[2]: [ZPT] How do I...

Geir Bækholt Geir Bækholt <geirh@funcom.com>
Fri, 18 May 2001 09:42:46 +0200


'as' and 'in' would certainly be neat and clear.

I find it totally ok the way it is now , but Evan's way might be
clearer to newbies and easier to catch..


--
Geir Bækholt
Web-Developer/Zopatista
geirh@funcom.com
http://www.funcom.com

on or about, Thursday, May 17, 2001, we have reason to believe that Evan Simpson wrote something along the lines of :
ES> From: "Guido van Rossum" <guido@digicool.com>
>> Seeing this example again, I'm wondering if perhaps we were too eager
>> to minimize the syntax?  Wouldn't this look much better with an '='
>> sign after opt?
>>
>>   tal:define="opt = options/module_code | request/module_code | nothing"

ES> The two "=" in such close proximity still bugs me, and "=" doesn't seem to
ES> go with "define".  I like "as" better, except that it just adds wordiness:

ES> tal:define="this as that; global something as here/something"

ES> Similarly for "in" and "repeat":

ES> tal:repeat="item in sequence"

ES> Cheers,

ES> Evan @ digicool


ES> _______________________________________________
ES> ZPT mailing list
ES> ZPT@zope.org
ES> http://lists.zope.org/mailman/listinfo/zpt