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
This is not a bug, but not sure how to add a suggestion. I love the
helpful Sorry! messages and I think there is some room for an
improvement to one. It would have saved me about 20 mins headache last
night anyway.
Bitwise operators in perl6 are not the same as in c, perl5 or other
languages and this can catch people out. I discovered a helpful message
with >> but there is none for & instead it makes a junction for you. It
took me ages to figure this out.
my $a = 4
4
$a >> 2
===SORRY!=== Error while compiling <unknown file>
Unsupported use of >> to do right shift; in Perl 6 please use +> or ~>
at <unknown file>:1
------> $a >>⏏ 2
$a & 2
all(4, 2)
I wonder if there is benefit in adding a parenthesis to this indicating
the other bitwise operators) such as
Unsupported use of >> to do right shift; in Perl 6 please use +> or ~>
(other bitwise operators are similar +< right shift, +& and , +| or, +!
negation)
Keep up the good work!
Kevin
--
KEVIN COLYER
* YWAM Reading Associate
* Fresh Expressions Representative for YWAM England
* Emmanuel Anglican Church, Woodley
Migrated from rt.perl.org#125116 (status was 'new')
Searchable as RT125116$
The text was updated successfully, but these errors were encountered: