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

No spaces allowed around .^ and .? (^42 .^methods.say) #4839

Closed
p6rt opened this issue Dec 9, 2015 · 4 comments
Closed

No spaces allowed around .^ and .? (^42 .^methods.say) #4839

p6rt opened this issue Dec 9, 2015 · 4 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Dec 9, 2015

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

Searchable as RT126856$

@p6rt
Copy link
Author

p6rt commented Dec 9, 2015

From @AlexDaniel

Code​:
^42 .^methods.say

Result​:
===SORRY!=== Error while compiling -e
Unsupported use of . to concatenate strings; in Perl 6 please use ~
at -e​:1
------> 42 .^⏏methods.say

Arguably it should work, just like you can put spaces around a single dot
it should be possible to put spaces around 「.^」 and 「.?」.
If it should not, then perhaps there is a way to improve this error
message? It is way too off right now.

@p6rt
Copy link
Author

p6rt commented Jan 20, 2018

From @zoffixznet

On Wed, 09 Dec 2015 08​:38​:16 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
^42 .^methods.say

Result​:
===SORRY!=== Error while compiling -e
Unsupported use of . to concatenate strings; in Perl 6 please use ~
at -e​:1
------> 42 .^⏏methods.say

Arguably it should work, just like you can put spaces around a single dot
it should be possible to put spaces around 「.^」 and 「.?」.
If it should not, then perhaps there is a way to improve this error
message? It is way too off right now.

This now gives useful error message. Tests in post-release branch in​: rakudo/rakudo@ec23031d33

@p6rt
Copy link
Author

p6rt commented Jan 20, 2018

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

@p6rt
Copy link
Author

p6rt commented Jan 20, 2018

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

@p6rt p6rt closed this as completed Jan 20, 2018
@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