Re: A4 aliasing syntax (and a note on statement modification)

2003-02-09 Thread Michael Lazzaro
On Saturday, February 8, 2003, at 02:53 AM, Luke Palmer wrote: If you're talking about your own Cfor example, actually, this would match it better: grep $x - @list { $x eq 3 } But if you're talking about A4's: grep @list - $x { $x eq 3 } Which is very close to (one of) the currently

Re: A4 aliasing syntax (and a note on statement modification)

2003-02-09 Thread Erik Steven Harrison
-- On Fri, 7 Feb 2003 16:28:43 gpurdy wrote: All -- A4 gives this example of Cfor: for @foo - $a, $b { ... } # for @foo into $a and $b... but, this seems more natural to me (and, it turns out, closer to the P5 syntax for ill or good): for $a, $b - @foo { ... } # for $a and $b

Re: Arrays vs. Lists

2003-02-09 Thread Deborah Ariel Pickett
I'm trying, and failing, to accurately and definitively answer the question what's the difference between an array and a list in Perl6? If someone can come up with a simple but accurate definition, it would be helpful. While I like the glib Arrays are variables that hold lists explanation

Re: Arrays vs. Lists

2003-02-09 Thread Joseph F. Ryan
Deborah Ariel Pickett wrote: I'm trying, and failing, to accurately and definitively answer the question what's the difference between an array and a list in Perl6? If someone can come up with a simple but accurate definition, it would be helpful. While I like the glib Arrays are