Apoc4 - A little wish

2002-01-19 Thread Angel Faus
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

Re: Apoc4 - A little wish

2002-01-19 Thread Angel Faus
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

Re: Apoc4 - A little wish

2002-01-19 Thread Randal L. Schwartz
> "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

Re: Apoc4 - A little wish

2002-01-20 Thread Damian Conway
> 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

Re: Apoc4 - A little wish

2002-01-20 Thread Larry Wall
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