Skip to content

Commit

Permalink
Adds quietly as statement prefix refs #2034
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Apr 17, 2019
1 parent 1dbaeef commit 48e6e18
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/Language/statement-prefixes.pod6
Expand Up @@ -77,6 +77,19 @@ Main difference between C<hyper> and C<race> is the ordering of results. Use
C<hyper> if you need the loop results to be produced in order, C<race> if you
don't care.
=head2 X<C<quietly>|quietly (statement prefix)>
As a statement prefix, C<quietly> suppresses all warnings produced by the
statement it precedes.
=for code
sub marine() {};
quietly say ~&marine; # OUTPUT: «marine␤»
Calling L<C<.Str> on C<code> produces a warning|/type/Code#method_Str>.
Preceding the statement with C<quietly > will just produce the output, the name
of the routine.
=end pod

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 comments on commit 48e6e18

Please sign in to comment.