Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
List repeat {} while/until in 5to6 nutshell
Related to #688
  • Loading branch information
zoffixznet committed Jul 11, 2016
1 parent 5621797 commit 4488e4e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/Language/5to6-nutshell.pod6
Expand Up @@ -751,6 +751,27 @@ loop using the C<.lines> method.
while (<IN_FH>) { } # Perl 5
for $IN_FH.lines { } # Perl 6
=head3 C<do> C<while>/C<until>
do {
...
} while $x < 10;
do {
...
} until $x >= 10;
The construct is still present, but C<do> was renamed to C<repeat>, to better
represent what the construct does:
repeat {
...
} while $x < 10;
repeat {
...
} until $x >= 10;
=head3 C<for> C<foreach>
Note first this common misunderstanding about the C<for> and C<foreach>
Expand Down

0 comments on commit 4488e4e

Please sign in to comment.