Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

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

Closed p6rt closed 6 years ago

p6rt commented 8 years ago

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

Searchable as RT126856$

p6rt commented 8 years ago

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 commented 6 years ago

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​: https://github.com/rakudo/rakudo/commit/ec23031d33

p6rt commented 6 years ago

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

p6rt commented 6 years ago

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