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

Pointless to P5-warn on % sigil interpolation which Perl5 does not do #6499

Closed
p6rt opened this issue Sep 6, 2017 · 2 comments
Closed

Pointless to P5-warn on % sigil interpolation which Perl5 does not do #6499

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

Comments

@p6rt
Copy link

p6rt commented Sep 6, 2017

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

Searchable as RT132040$

@p6rt
Copy link
Author

p6rt commented Sep 6, 2017

From @skids

Since Perl5 does not interpolate %-sigiled variables in quotes, it is
kind of pointless to warn on use of Perl5 symbolic variables when they
are being considered for interpolation by a qlang.

$ perl -e 'print "%+ "'
%+
$ perl6 -e 'print "%+ "'
===SORRY!=== Error while compiling -e
Unsupported use of %+ variable; in Perl 6 please use .to method
at -e​:1
------> print "%+⏏ "

Better behavior is to just use it literally as we do with, e.g.​:
$ perl6 -e 'print "%= "'
%=

(This ticket addresses a side-issue raised by a bunch of
auto-generated RTs from S32-str/sprintf-b.t, so we don't
lose that information while cleaning the tests up.)

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@JJ
Copy link

JJ commented Dec 30, 2020

It's what it does now. Closing.

@JJ JJ closed this as completed Dec 30, 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

2 participants