Skip to content

Commit f5558b1

Browse files
authored
Merge pull request #2702 from WalterBright/useAssert
Use assert() rather than Error
2 parents b132810 + b885ced commit f5558b1

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
@@ -1684,6 +1684,11 @@ $(P $(EXPRESSION) is evaluated and must be a `Throwable` reference. The
16841684
throw new Exception("message");
16851685
---
16861686

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

16891694
$(GRAMMAR

0 commit comments

Comments
 (0)