on 10/2/2000 10:05 PM, "Brendan Quinn" <[EMAIL PROTECTED]> wrote:
> I'm brand new to all of this but it sounds a little confusing to me...
>
> C, C++, Java all have the familiar
> for (;;)
>
> Python has
> for var in list
>
> Perl has
> foreach $var (list) { statement }
> for (;;)
>
> PHP has
> foreach (array_expression as $value) statement
> for (;;)
>
> And you guys want to create *another* permutation?
>
> Sounds weird to me.
>
> Brendan.
Given all of those,
#foreach ($element in $list)
sounds the most reasonable and actually is just like Python's except for the
() which is only there to make the parsing easier.
Also, note that we are not creating another permutation, we are simply
adding () around an existing one (WebMacro's).
:-)
-jon
--
http://scarab.tigris.org/ | http://noodle.tigris.org/
http://java.apache.org/ | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/ | http://www.sourcexchange.com/