Re: New looping method proposal
| From: | Andrei Zmievski | Date: | Mon, 19 Nov 2001 19:07:29 +0000 |
| Subject: | Re: New looping method proposal | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1975@lists.php.net to get a copy of this message | ||
On Mon, 19 Nov 2001, Monte Ohrt wrote:
> "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?
Because we need a way to loop through non-sequential/associative arrays,
and {section..} doesn't cut it.
-Andrei
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" but "That's funny..." -- Isaac Asimov.