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
pair with Nil key deparses incorrectly #4836
Comments
From zefram@fysh.org$ perl6 -e '((Nil)=>1).key.WHAT.say; ((Nil)=>1).perl.EVAL.key.WHAT.say' The problem is that the .perl of that pair is "Nil => 1", which parses -zefram |
From @lizmat
I think this is ENOTABUG. Perl 6 has the same auto-quoting rules for the left side of a fat comma as Perl 5. $ 6 'dd (Any => 42).key' $ 6 'dd ((Any) => 42).key' So, yes, you need to do something extra to keep the typedness of the left hand side. Just as you would need to do in Perl 5. Another way of creating a Pair, is Pair.new: $ 6 'dd Pair.new(Any,42).key' YMMV Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @timoI think you might have misread the bug report. This bug is about the .perl method on Pair not being careful enough if I am reluctant to add a full ~~ /<ident>/ to the .perl, as matching On 12/13/2015 11:13 AM, Elizabeth Mattijsen wrote:
|
From @lizmatCompletely right! 5b6cbc7d54ce5ad252cf74 fixes Pair.perl properly. Liz
|
From @skidsOn Sun, 13 Dec 2015 06:03:35 -0800, elizabeth wrote:
Test added in roast commit 56ec03599, so resolving this ticket. |
@skids - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126890 (status was 'resolved')
Searchable as RT126890$
The text was updated successfully, but these errors were encountered: