in grammar actions it's valid to create methods like: name:sym<variant>($/) { ... }
so I guess '$object.name:k:' args could work but :k<v>, would be tricky because it would be hard to differentiate between invoking '$object.name:k<v>: args' and '$object.name:sym<variant>: args'. On Sun, Feb 14, 2016 at 1:43 PM Alex Jakimenko <perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by Alex Jakimenko > # Please include the string: [perl #127539] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=127539 > > > > Code: > my @h = <1 1 2 1 1>; > say @h.grep:k: 1 > > Result: > (1 1 1 1) > > > I expected to see (0 1 3 4) which is the result of a very similar code > snippet: my @h = <1 1 2 1 1>; say @h.grep: 1, :k > However, it is totally fine to me if such code is supposed to do something > else (e.g adverb the method name itself instead of passing named arguments, > whatever that means). > > See IRC log for jnthn comments: > http://irclog.perlgeek.de/perl6/2016-02-13#i_12036804 >