Hi all,
I have just one syntatic wish for Apoc4 (which in all other points I
find utterly fantastic).
Could we have:
foreach $item in @arr {...}
Instead of
foreach @arr -> $item {...}
I find the first one:
- Much more pleasent to the eyes and less noisy on a long program.
- Easie
Sorry for the 4 times posts, i was testing a new mail program and it
didn't prove too good.
Now i feel so ashamed :-[
-angel
> "Angel" == Angel Faus <[EMAIL PROTECTED]> writes:
Angel> Hi all,
Angel> I have just one syntatic wish for Apoc4 (which in all other points I
Angel> find utterly fantastic).
Angel> Could we have:
Angel> foreach $item in @arr {...}
Angel> Instead of
Angel> foreach @arr -> $item {...}
L
> Angel> Could we have:
>
> Angel> foreach $item in @arr {...}
>
> Angel> Instead of
>
> Angel> foreach @arr -> $item {...}
>
> Larry considered that, and declined. Not sure of the reasons.
* He didn't want a keyword that would become lost when lots of variables
or sub calls are used i
Angel Faus writes:
: ¿are we going to have a iterator protocol? I am talking of python's
: iterators, not ruby ones (which are being discussed in a different
: post). The iterator protocol allows any object that implements a .next
: method to be used in a foreach loop. This is very handy for th