Damian Conway wrote:

> Rather than addition Yet Another Feature, what's wrong with just using:
>
>     for @list ¥ @list[1...] -> $curr, $next {
>         ...
>     }
>
> ???

1. Requirement to repeat the possibly complex expression for the list.
2. Possible high cost of generating the list.
3. Possible unique nature of the list.

All of these have the same solution:

@list = ...
for [undef, @list[0...]] ¥ @list ¥ [EMAIL PROTECTED], undef] -> $last, $curr,
$next {
  ...
}

Which is all but illegible.

=Austin


Reply via email to