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 C: > >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

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 C 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 v

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

2003-02-08 Thread Luke Palmer
> From: [EMAIL PROTECTED] > Date: Fri, 7 Feb 2003 16:28:43 -0500 > > A4 gives this example of C: > > 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 {