Skip to content

Commit

Permalink
doc unspace
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jul 11, 2016
1 parent 010af75 commit 5621797
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/Language/syntax.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ if True {say "Hello"}
though you can't leave out any of the remaining whitespace.
=head2 Unspace
In many places where the compiler would not allow a space you can use any
whitespace that is quoted with a backslash. Unspaces in tokens are not
supported. Newlines that are unspaced still count when the compiler produces
line numbers. Usecases for unspace are separation of postfix operators and
routine argument lists.
sub alignment(+@l) { +@l };$
sub long-name-alignment(+@l) { +@l };$
alignment\ (1,2,3,4)>>.say;$
long-name-alignment(3,5)\ >>.say;$
=head2 Separating Statements
A Perl 6 program is a list of statements, separated by semicolons C<;>.
Expand Down

0 comments on commit 5621797

Please sign in to comment.