Skip to content

Commit f6cea4d

Browse files
committed
add Rationale to assert() specification
1 parent 00c025a commit f6cea4d

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
@@ -2179,6 +2179,12 @@ $(GNAME AssertArguments):
21792179
)
21802180
)
21812181

2182+
$(RATIONALE
2183+
The rationale for and proper use of `assert` comes up now and then.
2184+
Here is a long discussion of it:
2185+
$(LINK2 Logic Bugs vs Input Errors, https://digitalmars.com/d/archives/digitalmars/D/Program_logic_bugs_vs_input_environmental_errors_244143.html)
2186+
)
2187+
21822188
$(H3 $(LNAME2 mixin_expressions, Mixin Expressions))
21832189

21842190
$(GRAMMAR

0 commit comments

Comments
 (0)