You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
&prefix:<+\\\\+>
===SORRY!=== Error while compiling:
Undeclared routine:
prefix:<+\\+> used at line 1. Did you mean 'prefix:<++>', 'prefix:<~>', 'prefix:<temp>'?
Observe that what I input as <+\\\\+> has been echoed back in the error
message as <+\\+>. Those are not equivalent subscripts, so that error
message is erroneous.
Aside from simply applying the quoting rules to see what the subscripts
mean, one can see that they're different by inputting <+\\+> in the same
context for comparison:
&prefix:<+\\+>
===SORRY!=== Error while compiling:
Undeclared routine:
prefix:<+\+> used at line 1. Did you mean 'prefix:<++>', 'prefix:<+>', 'prefix:<+^>'?
Note that it's echoed differently and gets a different list of suggested
typo resolutions. This time it's actually been echoed back correctly:
<+\+> is equivalent to <+\\+>.
The issue is the message shows literal name of the stuff inside the brackets. Same applies to having a > in it:
$ perl6 -e '&prefix:«+\\\>\+»'
===SORRY!=== Error while compiling -e
Undeclared routine:
prefix:<+\\>+> used at line 1. Did you mean 'prefix:<++>', 'prefix:<~>', 'prefix:<temp>'?
Migrated from rt.perl.org#128949 (status was 'new')
Searchable as RT128949$
The text was updated successfully, but these errors were encountered: