Re: New looping method proposal

From: Date: Mon, 19 Nov 2001 19:06:33 +0000
Subject: Re: New looping method proposal
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1974@lists.php.net to get a copy of this message
"for" looks good to a programmer. but "loop" might make more sense to a designer. {for ...} {/for} {loop var=$contacts} {/loop} I still think this adds unnecessary noise to the language. Why don't we change PHP's default delimiters from <? ?> to { } and be done with it? Andrei Zmievski wrote: > > On Mon, 19 Nov 2001, Brent R. Matzelle wrote: > > Perhaps a Pythonesk syntax: > > > > {for $contact in $project.contactpersons} > > Person: $contact.name > > {/for} > > I like this, but we should keep to the usual Smarty syntax of > attr=value, I think. > > -Andrei > > "Freedom comes when you learn to let go. > Creation comes when you learn to say no." > -madonna > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#1974) next »