Skip to content

Commit

Permalink
add Rationale to assert() specification
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed May 22, 2022
1 parent 00c025a commit f6cea4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/expression.dd
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,12 @@ $(GNAME AssertArguments):
)
)

$(RATIONALE
The rationale for and proper use of `assert` comes up now and then.
Here is a long discussion of it:
$(LINK2 Logic Bugs vs Input Errors, https://digitalmars.com/d/archives/digitalmars/D/Program_logic_bugs_vs_input_environmental_errors_244143.html)
)

$(H3 $(LNAME2 mixin_expressions, Mixin Expressions))

$(GRAMMAR
Expand Down

0 comments on commit f6cea4d

Please sign in to comment.