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
All digit words in angle-bracket word quoting don't come out the same as the literally quoted word #5825
Comments
From @briandfoyAdapted from the Stackoverflow answer at: I'm using moar (2016.10) on macosx (10.10.5) darwin (14.5.0) (These This came out of a problem I had with set membership. It turns out I used the [angle-brackets form of the quote <a b c> eqv ('a', 'b', 'c') But, when I try this with a word that is all digits, this is not equivalent: $ perl6
But, the other forms of word quoting are!
The angle-bracket word quoting uses
Without the word quoting, the digits word comes out as [Str]:
|
From @briandfoyThis appears to be a problem with the docs. In https://docs.perl6.org/language/quoting#Word_quoting:_qw , there's no mention of the special value processing. The current text strongly implies that <...> is the same qw//. There's no note about the :v adverb. |
From @zoffixznetOn Sat, 26 Nov 2016 15:47:38 -0800, comdog wrote:
Thanks for the reqport, however, what you describe is not a bug, as the angle brackets The documention was just misleading. I corrected it in: |
The RT System itself - Status changed from 'new' to 'open' |
@zoffixznet - Status changed from 'open' to 'resolved' |
From @lizmatI think this is not a bug but the result of angle brackets quoting, which creates allomorphs:. It is even documented: https://docs.perl6.org/language/glossary#index-entry-Allomorph Hope this helps.
|
Migrated from rt.perl.org#130184 (status was 'resolved')
Searchable as RT130184$
The text was updated successfully, but these errors were encountered: