Skip to content

Commit 9d07ddb

Browse files
committed
Document no worries pragma
Rakudo impl: rakudo/rakudo@f5b4d89fbb Spec: Raku/roast@5c91d6803b
1 parent 80c0da6 commit 9d07ddb

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

doc/Language/pragmas.pod6

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,23 @@ for certain sections of code.
136136
=item X<B<variables>|variables>
137137
L<Defined Variables Pragma|/language/variables#Default_Defined_Variables_Pragma>
138138
139-
=item X<B<worries>|worries> [TBD]
139+
=item X<B<worries>|worries>
140+
141+
Lexically controls whether compile-time warnings generated by the
142+
compiler get shown. Enabled by default.
143+
144+
=begin code :lang<text>
145+
$ perl6 -e 'say :foo<>.Pair'
146+
Potential difficulties:
147+
Pair with <> really means an empty list, not null string; use :foo('') to represent the null string,
148+
or :foo() to represent the empty list more accurately
149+
at -e:1
150+
------> say :foo<>⏏.Pair
151+
foo => Nil
152+
153+
$ perl6 -e 'no worries; say :foo<>.Pair'
154+
foo => Nil
155+
=end
140156
141157
=item Other pragma under discussion
142158

0 commit comments

Comments
 (0)