Skip to content
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

X and Z metaops flatten itemized hashes and arrays, should not #2995

Closed
p6rt opened this issue Dec 10, 2012 · 3 comments
Closed

X and Z metaops flatten itemized hashes and arrays, should not #2995

p6rt opened this issue Dec 10, 2012 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Dec 10, 2012

Migrated from rt.perl.org#116036 (status was 'resolved')

Searchable as RT116036$

@p6rt
Copy link
Author

p6rt commented Dec 10, 2012

From @moritz

< moritz> nr​: say <a b> X=> [];
<+p6eval> niecza v24-5-g599cbcb​: OUTPUT«"a" => [] "b" => []␤»
<+p6eval> ..rakudo 53daef​: OUTPUT«␤»

< moritz> nr​: say <a b> Z=> [];
<+p6eval> niecza v24-5-g599cbcb​: OUTPUT«"a" => []␤»
<+p6eval> ..rakudo 53daef​: OUTPUT«␤»

In both cases, niecza is right and Rakudo is wrong -- it should treat []
(or {}, for that matter) as a single item, not as an empty flat list.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

From @FROGGS

FROGGS_> m​: say <a b> X=> [];
camelia> rakudo-moar 866817​: OUTPUT«"a" => [] "b" => []␤»
FROGGS_> m​: say <a b> Z=> [];
camelia> rakudo-moar 866817​: OUTPUT«"a" => []␤»

Test​: Raku/roast@42c8533ab3

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

@FROGGS - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jul 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant