Navigation Menu

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

Different behavior of qqw<...> & «...» #5328

Closed
p6rt opened this issue May 18, 2016 · 5 comments
Closed

Different behavior of qqw<...> & «...» #5328

p6rt opened this issue May 18, 2016 · 5 comments

Comments

@p6rt
Copy link

p6rt commented May 18, 2016

Migrated from rt.perl.org#128177 (status was 'rejected')

Searchable as RT128177$

@p6rt
Copy link
Author

p6rt commented May 18, 2016

From kopytov@webhackers.ru

Hi.

Documentation says that quoting constructs qqw<...> & «...» are
equivalentl. But there is a difference for this cases​:

  $ perl6 -e ' my $b = "b"; qqw<a /$b/ c>.perl.say '
  ("a", "/b/", "c")

  $ perl6 -e ' my $b = "b"; «a /$b/ c».perl.say '
  ("a", "/", "b", "/", "c")

Is it an undocumented feature or bug?

--
Dmitry Kopytov

@p6rt
Copy link
Author

p6rt commented May 18, 2016

From @AlexDaniel

If I'm not mistaken, it is equivalent to qqww, not qqw.

We're talking about this part of the documentation, I guess​: https://doc.perl6.org/language/quoting#Word_quoting_with_interpolation%3A_qqw

According to roast, the docs are wrong. See this​: https://github.com/perl6/roast/blob/ab74762da156fa6fda5dd39281f7ffcc361d5a88/S02-literals/quoting.t#L239

@p6rt
Copy link
Author

p6rt commented May 20, 2016

From @AlexDaniel

Given that there are tests for it, I conclude that this is a problem with the documentation.

I have created an issue here​: Raku/doc#532
Further progress can be tracked there.

Therefore, this particular ticket can be closed.

Thank you for your bug report.

@p6rt
Copy link
Author

p6rt commented May 20, 2016

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

@p6rt
Copy link
Author

p6rt commented May 20, 2016

@AlexDaniel - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant