You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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-followup@perl.org>
wrote:
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).
Migrated from rt.perl.org#127539 (status was 'open')
Searchable as RT127539$
The text was updated successfully, but these errors were encountered: