On Fri, Oct 7, 2022 at 11:42 AM Dave Mitchell <davem@iabyn.com> wrote: > I'd expect :@bar to be a syntax error. But note that in a separate > proposal, a \@ary parameter auto-dereferences and aliases a passed array > ref, as in > > sub foo(\@numbers) { say "@numbers" } > foo([1,2,3]); # prints "1 2 3" > > This can be combined separately with named parameters, giving > > sub foo(\:@numbers) { say "@numbers" } > foo("numbers => [1,2,3]); # prints "1 2 3" > Is the double quote in front of numbers a typo or a syntactical feature? Best, Curtis "Ovid" Poe -- CTO, All Around the World World-class software development and consulting https://allaroundtheworld.fr/Thread Previous | Thread Next