Skip to content

Commit b885ced

Browse files
committed
Use assert() rather than Error
1 parent 4b9608e commit b885ced

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/statement.dd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,11 @@ $(P $(EXPRESSION) is evaluated and must be a `Throwable` reference. The
16811681
throw new Exception("message");
16821682
---
16831683

1684+
$(BEST_PRACTICE Use $(DDSUBLINK spec/expression, assert_expressions, Assert Expressions)
1685+
rather than $(LINK2 $(ROOT_DIR)library/object#.Error, Error) to report program bugs
1686+
and abort the program.
1687+
)
1688+
16841689
$(H2 $(LEGACY_LNAME2 ScopeGuardStatement, scope-guard-statement, Scope Guard Statement))
16851690

16861691
$(GRAMMAR

0 commit comments

Comments
 (0)