>I don't think anyone *needs* this, it would just be a nice syntactic >sugar. Haven't you ever coded a foreach loop only to realize later >that you need the index of the thing you've iterated to? Wouldn't it >be nice to just have access to it rather than hoop-jumping a little? On rare not common occasion. And then I've either added an $i++ in the foreach loop or else used a for(;;) loop. I am nervous about adding more special little invisible side-effect magic when it's something that is seldom needed and already feasible. And it won't be free, either, but that's not the biggest concern. --tom
- Re: RFC 120 (v2) Implicit counter in for statements, p... Nathan Torkington
- Re: RFC 120 (v2) Implicit counter in for statements, p... Steve Simmons
- Re: RFC 120 (v2) Implicit counter in for statemen... John McNamara
- Re: RFC 120 (v2) Implicit counter in for stat... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit counter in for ... John McNamara
- Re: RFC 120 (v2) Implicit counter in for stat... Steve Simmons
- Re: RFC 120 (v2) Implicit counter in for stat... David L. Nicol
- Re: RFC 120 (v2) Implicit counter in for ... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit counter in ... Tom Christiansen
- Re: RFC 120 (v2) Implicit counte... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit co... Tom Christiansen
- Re: RFC 120 (v2) Implicit counter in ... Chaim Frenkel
- Re: RFC 120 (v2) Implicit counte... David L. Nicol
- Re: RFC 120 (v2) Implicit counter in for stat... Johan Vromans
- Re: RFC 120 (v2) Implicit counter in for ... Tom Christiansen
- Re: RFC 120 (v2) Implicit counter in for statements, p... John McNamara