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

error message when doing Any eq 'x' #4603

Closed
p6rt opened this issue Sep 28, 2015 · 6 comments
Closed

error message when doing Any eq 'x' #4603

p6rt opened this issue Sep 28, 2015 · 6 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 28, 2015

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

Searchable as RT126215$

@p6rt
Copy link
Author

p6rt commented Sep 28, 2015

From @AlexDaniel

Code​:
say Any eq 'x';

Result​:
Use of uninitialized value of type Any in string context
Any of .^name, .perl, .gist, or .say can stringify undefined things, if
needed. in block <unit> at ./test2.pl​:2
False

The error message is correct, but it is really hard to read it. Just a
little bit of rephrasing would help!
* The use of word “Any” in the error message about Any is confusing
* “stringify undefined things” is a little bit confusing, for me it is not
clear whether “undefined” is used as in “undef” or as in “undefined
behavior”.
* There are probably better words than “things” (it will make it much
clearer!)
* “if needed” – needed for who?

I had a really hard time trying to read that message correctly, so perhaps
I'm not the only one. I'd say that it is less than awesome.

@p6rt
Copy link
Author

p6rt commented Oct 1, 2015

From @usev6

For the records​: The second part of this error message was introduced recently in response to RT #​113888. I'm going to link both tickets as related.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 1, 2015

From @usev6

For the records​: The second part of this error message was introduced recently in response to RT #​113888. I'm going to link both tickets as related.

@p6rt
Copy link
Author

p6rt commented Aug 8, 2016

From @zoffixznet

Fixed in rakudo/rakudo@fb42520b0f

@p6rt
Copy link
Author

p6rt commented Aug 8, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 8, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 8, 2016
@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant