From 93499fa061c2fca00d48a7dd5f966d7a65c6df39 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Wed, 5 Jul 2017 15:26:50 -0400 Subject: [PATCH] =?UTF-8?q?Remove=20hyper=20vs.=20=C2=AB=C2=BB=20trap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] https://github.com/rakudo/rakudo/commit/d39f7b9aff --- doc/Language/traps.pod6 | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/doc/Language/traps.pod6 b/doc/Language/traps.pod6 index b98f2b0aa..bd73e6d85 100644 --- a/doc/Language/traps.pod6 +++ b/doc/Language/traps.pod6 @@ -205,31 +205,6 @@ The common areas you should watch out for are: my @a = [[],]; =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