Skip to content

Commit

Permalink
Remove hyper vs. «» trap
Browse files Browse the repository at this point in the history
The ambiguity warning for the more common case was made[^1]
not to warn for cases shown in the examples and the much less
common cases don't warrant a Trap entry (a warning is generated
by the compiler in those cases anyway).

[1] rakudo/rakudo@d39f7b9aff
  • Loading branch information
zoffixznet committed Jul 5, 2017
1 parent db26e3b commit 93499fa
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions doc/Language/traps.pod6
Expand Up @@ -205,31 +205,6 @@ The common areas you should watch out for are:
my @a = [[<foo bar ber>],];
=end code
=head3 The «» quoters vs. Hyper ambiguity
=begin code :skip-test
my $foo = 'bar ber';
# WRONG; ambiguity whether `$foo»` means end of quoter or to hyper a postfix:
my @a = «foo $foo»;
# RIGHT; put a space in to resolve ambiguity:
my @a = «foo $foo »;
# Also good; use different delimiters:
my @a = qqww|foo $foo|;
# WRONG; is it a hyper in the middle or end of quoters?:
my @a = «foo $foo».uc() Perl»;
# RIGHT; simply use Texas version of hyper:
my @a = «foo $foo>>.uc() Perl»;
# Also good; use different delimiters:
my @a = qqww|foo $foo».uc() Perl|;
=end code
=head3
=head1 Captures
Expand Down

0 comments on commit 93499fa

Please sign in to comment.