Skip to content

Commit 103019d

Browse files
committed
compile time errors are SORRY
1 parent 24ce248 commit 103019d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/Language/faq.pod

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
77
=head1 Language Features
88
9+
=head2 Why is the Rakudo compiler sometimes more apologetic?
10+
11+
If SORRY! is present in the output the error is a compile time error
12+
otherwise it's runtime.
13+
14+
Example:
15+
say 1/0 # Attempt to divide 1 by zero using div
16+
17+
sub foo ( Int $a, Int $b ) {...}
18+
foo(1) # ===SORRY!=== Error while compiling ...
19+
920
=head2 What is C<(Any)>?
1021
1122
L<Any|type/Any> is a top level class used as a default superclass for new

0 commit comments

Comments
 (0)