Permalink
Browse files

use nbsp

  • Loading branch information...
coke committed Jul 5, 2017
1 parent 93499fa commit ffca24bd1248cfcab98a91e0ffbbc1fe96dfe18f
Showing with 3 additions and 3 deletions.
  1. +3 −3 doc/Language/traps.pod6
View
@@ -171,10 +171,10 @@ Ways to match whitespace:
=head2 Ambiguities in Parsing
While some languages will let you get away with removing as much whitespace
between tokens as possible, Perl 6 is less forgiving. The overarching
between tokens as possible, Perl 6 is less forgiving. The overarching
mantra is we discourage code golf, so don't scrimp on whitespace (the
more serious underlying reason behind these restrictions is
single-pass parsing and ability to parse Perl 6 programs with virtually
single-pass parsing and ability to parse Perl 6 programs with virtually
no L<backtracking|https://en.wikipedia.org/wiki/Backtracking>).
The common areas you should watch out for are:
@@ -188,7 +188,7 @@ The common areas you should watch out for are:
# RIGHT:
while ($++ > 5) { .say }
# EVEN BETTER; Perl 6 does not require parentheses there:
# EVEN BETTER; Perl 6 does not require parentheses there:
while $++ > 5 { .say }
=end code

0 comments on commit ffca24b

Please sign in to comment.