New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make :%hash<key> a pair constructor #4997
Comments
From @FROGGSFor a while we can create Pairs from named captures of match variables: Sadly, this does not even parse: Nor does this create a Pair: So I vote for all shown statements to create a Pair of key => Nil or key Funnily, Arrays behave differently when used with colonpair syntax: Which is also wrong, IMO. |
From @LLFournIs the first example meant to be like: '"foo" ~~ /$<key>=.+/; say (:$<key>)' ?? On Tue, Jan 5, 2016 at 6:42 PM Tobias Leich <perl6-bugs-followup@perl.org>
|
The RT System itself - Status changed from 'new' to 'open' |
From @FROGGSYes, that's how you get a Match variable. |
From @LLFournI was confused because of the preceding hash assignment :) I also find myself not wanting to do { long-attribute-name => I'll be quiet now. On Tue, Jan 5, 2016 at 7:01 PM Tobias Leich <email@froggs.de> wrote:
|
Migrated from rt.perl.org#127165 (status was 'open')
Searchable as RT127165$
The text was updated successfully, but these errors were encountered: