Re: Sv: Re: New looping method proposal

From: Date: Wed, 21 Nov 2001 20:27:20 +0000
Subject: Re: Sv: Re: New looping method proposal
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2013@lists.php.net to get a copy of this message
So you don't like it solely because it is similar to PHPs foreach syntax? reasons? Andrei Zmievski wrote: > > On Wed, 21 Nov 2001, Monte Ohrt wrote: > > {foreach loop=$var as=foo index=bar} > > >From previous email: > > > > The only thing not possible in my approach is Monte's remark about > > > indices. But that was covered by my second proposal: > > > > > > {foreach $projects as $index => $project} > > > <br> something from another array: {$prices[$indes]} > > > {/for} > > > > I am willing to entertain the idea of this construct, because it will > > solve the problem of looping through non-sequential or associative > > arrays. However, I do not think that I want to use the same syntax as > > PHP does. Can we come up with something better? > > -Andrei > > Magic 8-ball is much more powerful than we thought. I mean, back in the 70's > it was predicting the nature of software in the 90's -- "Outlook not so good".

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