# New Ticket Created by 刘刊
# Please include the string: [perl #125580]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125580 >
15:20 < kanl> my $a = bag( -Inf .. Inf ); my $b = bag( 1 .. 3 ); my $c = bag();
say $a(+)$b(+)$c; ## this won't work
15:21 < kanl> 1. Inf is not properly guarded
15:21 < kanl> 2. the (whatever) operator requires leading whitespaces.
15:21 < kanl> 3. can't mix the operators without grouping ()
15:23 < kanl> m: my $a = bag( 1 .. 4 ); my $b = bag( 1 .. 3 ); say $a(+)$b;
15:23 < kanl> m: my $a = bag( 1 .. 4 ); my $b = bag( 1 .. 3 ); my $c = bag();
say $a (+) $b (-) $c;
15:23 <+camelia> rakudo-moar 377672: OUTPUT«===SORRY!=== Error while compiling
/tmp/hlD7eRLLzWPrefix + requires an argument, but no valid
term foundat /tmp/hlD7eRLLzW:1------> .. 4 ); my $b = bag(
1 .. 3 ); say $a(+⏏)$b; expecting any of: prefix»
15:24 <+camelia> rakudo-moar 377672: OUTPUT«===SORRY!=== Error while compiling
/tmp/YpB9DyyE64Operators '(+)' and '(-)' are non-associative
and require parenthesesat /tmp/YpB9DyyE64:1------> ( 1 .. 3
); my $c = bag(); say $a (+) $b⏏ (-) $c; expecting any
of: i…»