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

More helpful sorry message for bitwise operators #4220

Open
p6rt opened this issue May 6, 2015 · 1 comment
Open

More helpful sorry message for bitwise operators #4220

p6rt opened this issue May 6, 2015 · 1 comment
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented May 6, 2015

Migrated from rt.perl.org#125116 (status was 'new')

Searchable as RT125116$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 6, 2015

From kevin@thecolyers.net

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

Reading, UK
Tel​: +44 (0) 7967 105 273
Home​: +44 (0) 118 376 7471
skype​: kevincolyerwork
(alt email​: kevin.colyer@​freshexpressions.org.uk)

http://www.freshexpressions.org.uk
  Changing church for a changing world
http://www.emmanuelwoodley.org.uk
http://www.ywamreading.com
http://www.thecolyers.net
http://www.ywamengland.org
http://www.ywamkb.net
  The YWAM KnowledgeBase​: for YWAMers
  to find and help each other online
http://www.incarnationalgraffiti.com
  YWAM blog provoking creativity, missional thinking,
  dialogue and spirituality – engaging in an urban europe

@p6rt p6rt added lhf LTA labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.