Final draft of RFC 120: Implicit counter in for statements

2000-09-18 Thread John McNamara
ntributing parties to confirm that their suggestions have been fairly represented. Look out for RFC 1357: "Refract: A meta RFC language". Anyone who cares to debate the usefulness of a RFC definition language within Perl can meet me in the ICA bar at YAPC::Europe. John McNamara. =h

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-29 Thread John McNamara
with other proposals. > > 3. Explicit counter in the body of the for/each loop: a clean > > solution but requires a new or reused function. > >What happened to explicit variable(s) *after* the list? > > for (@array) $index { ... } Forgot it. :) I'l

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-29 Thread John McNamara
unter in the body of the for/each loop: a clean solution but requires a new or reused function. If you really wish to split part of this out into a separate RFC it would be best to wait until this one is more finalised. John McNamara -- "The Mosaic code has r

Re: RFC 120 (v2) Implicit counter in for statements, possibly $#.

2000-08-19 Thread John McNamara
There have been several good suggestions. We'll leave the discussion run for another few days and then I'll try to summarise the main points in a single post. John -- "The Mosaic code has replaced the law of the jungle." James Joyce - Ulysses

Re: RFC 120 (v1) Implicit counter in C statements, possibly C<$#>.

2000-08-17 Thread John McNamara
On Wed, Aug 16, 2000 at 11:42:20AM -1000, Tim Jenness wrote: > What about: > > for (0..$#array) { > print $array[$i], " is at index ", $i, "\n"; > } > > I use that whenever I need to loop over indices of two arrays at once. I use it myself ;) Iterating over an array in terms of the arra