File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,19 @@ if True {say "Hello"}
56
56
57
57
though you can't leave out any of the remaining whitespace.
58
58
59
+ = head2 Unspace
60
+
61
+ In many places where the compiler would not allow a space you can use any
62
+ whitespace that is quoted with a backslash. Unspaces in tokens are not
63
+ supported. Newlines that are unspaced still count when the compiler produces
64
+ line numbers. Usecases for unspace are separation of postfix operators and
65
+ routine argument lists.
66
+
67
+ sub alignment(+@l) { +@l };$
68
+ sub long-name-alignment(+@l) { +@l };$
69
+ alignment\ (1,2,3,4)>>.say;$
70
+ long-name-alignment(3,5)\ >>.say;$
71
+
59
72
= head2 Separating Statements
60
73
61
74
A Perl 6 program is a list of statements, separated by semicolons C < ; > .
You can’t perform that action at this time.
0 commit comments