Skip to content

Commit b73e34a

Browse files
committed
Note CATCH position
Closes #4520
1 parent 1ec4e7f commit b73e34a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/Language/exceptions.rakudoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ though:
220220
say "I'm alive!";
221221

222222
try {
223+
# NOTE: Raku allows you to place the CATCH block anywhere in the
224+
# scope of the enclosing block. Some prefer it at the top for
225+
# visibility, others at the end.
223226
CATCH {
224227
when X::AdHoc { .Str.say; .resume }
225228
}

0 commit comments

Comments
 (0)