Skip Menu |
Report information
Id: 125116
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: kevin [at]

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

From: Kevin Colyer <kevin [...]>
Date: Wed, 06 May 2015 12:24:10 +0100
Subject: [BUG] More helpful sorry message for bitwise operators
To: rakudobug [...]
Download (untitled) / with headers
text/plain 1.6k
Dear All,

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
> $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!

* YWAM Reading Associate
* Fresh Expressions Representative for YWAM England
* Emmanuel Anglican Church, Woodley

Reading, UK
Tel: +44 (0) 7967 105 273
Home: +44 (0) 118 376 7471
skype: kevincolyerwork
(alt email:
  Changing church for a changing world
  The YWAM KnowledgeBase: for YWAMers
  to find and help each other online
  YWAM blog provoking creativity, missional thinking,
  dialogue and spirituality – engaging in an urban europe

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at