[Zope-dev] 'not:' kludgey?!

Chris Withers chrisw@nipltd.com
Tue, 14 May 2002 09:41:53 +0100


Marc Lindahl wrote:
> 
> on 5/13/02 3:11 PM, Chris Withers at chrisw@nipltd.com scrivened:
> 
> >>
> >> For the reasons 'else' was invented in the first place,
> >
> > 'else' in what context?!
> 
> Meaning, in procedural languages.

Okay, repeat the mantra over to yourself:

Templating languages are not procedural languages
Templating languages are not procedural languages
Templating languages are not procedural languages
(etc)

*grinz*

> >>  I guess:  prone to
> >> errors, inefficient, bulky.
> >
> > Can you give any material that actually backs up these sweeping claims? ;-)
> 
> Prone to errors: when changing the condition, have to duplicated edits in 2
> places,

No you don't. Do I have to say that a third time? ;-)

> Inefficient: have to evaluate an expression twice (unless someone makes a
> jit compiler!)

I guess I do... :-P

> Bulky: in terms of taking more space in the source file, without clarifying
> what's being done.

That's a bit woolly, gimme some concrete examples...

> Yes you did, and re-reading the TAL wiki
> (http://www.zope.org//Wikis/DevSite/Projects/ZPT/TAL%20Specification%201.2)
> it's clear that your approach is the one the language is designed for.
> Also, your approach can easily accommodate other logic structures like case
> statement.  Well, I guess I'm convinced!

*grinz*

Chris