in reply to Re: Perl6 syntax being too much complex? How we will teach and read that?!
in thread Perl6 syntax being too much complex? How we will teach and read that?!
for zip(@foos, 0...) -> $foo, $i { # Here, $foo is an element of @foo # and $i is its index. }
This would be better written using an array's "kv" method:
I think my biggest concern is with the split-vertical-bar operator: strange syntax is most confusing when its only rarely used. "zip" is only 3 chars, and I don't see the huffman benefit of using a single unicode char (which probably requires 3 keystrokes to type, and multiple double-takes to distinguish from a non-split-vertical-bar).for @foos.kv -> $i, $foo { # $i = index; $foo = value }
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Perl6 syntax being too much complex? How we will teach and read that?!
by theorbtwo (Prior) on Mar 23, 2004 at 12:24 UTC |