Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document no worries pragma
  • Loading branch information
zoffixznet committed Jan 14, 2018
1 parent 80c0da6 commit 9d07ddb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion doc/Language/pragmas.pod6
Expand Up @@ -136,7 +136,23 @@ for certain sections of code.
=item X<B<variables>|variables>
L<Defined Variables Pragma|/language/variables#Default_Defined_Variables_Pragma>
=item X<B<worries>|worries> [TBD]
=item X<B<worries>|worries>
Lexically controls whether compile-time warnings generated by the
compiler get shown. Enabled by default.
=begin code :lang<text>
$ perl6 -e 'say :foo<>.Pair'
Potential difficulties:
Pair with <> really means an empty list, not null string; use :foo('') to represent the null string,
or :foo() to represent the empty list more accurately
at -e:1
------> say :foo<>⏏.Pair
foo => Nil
$ perl6 -e 'no worries; say :foo<>.Pair'
foo => Nil
=end
=item Other pragma under discussion
Expand Down

0 comments on commit 9d07ddb

Please sign in to comment.