Skip to content

Commit a0f77bb

Browse files
committed
add Rationale to assert() specification
1 parent 7a209db commit a0f77bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/expression.dd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,6 +2306,12 @@ $(GNAME AssertArguments):
23062306
)
23072307
)
23082308

2309+
$(RATIONALE
2310+
The rationale for and proper usage of assert are sometimes misunderstood.
2311+
A relevant discussion can be found in the following forum thread:
2312+
$(LINK2 Logic Bugs vs Input Errors, https://digitalmars.com/d/archives/digitalmars/D/Program_logic_bugs_vs_input_environmental_errors_244143.html)
2313+
)
2314+
23092315
$(H3 $(LNAME2 mixin_expressions, Mixin Expressions))
23102316

23112317
$(GRAMMAR

0 commit comments

Comments
 (0)