Re: RFC 120 (v2) Implicit counter in for statements, possibly$#.
[email protected] (Tom Christiansen) Wed, 30 Aug 2000 08:18:08 -0600
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Message-ID | <20171.967645088@chthon> |
>Interesting. I must have missed this. I'm not wild about the syntax,
>but I like the idea. If everything become objects under-the-hood,
>then we could have:
> for $a (@array) { print "$a is at $a->index\n"; }
>No, I'm not wild about that either, but it's an idea.
I don't perceive why this is so common a need as to require special
magic. And for those cases, a three-part for(;;) loop handles it,
since that tells you the index number directly. Could someone
explain why they need this? It seems rare.
--tom