Documented with-asserts.
original commit: 63530ed74df880b55b4dc85398181fb2925e6947
This commit is contained in:
parent
acd7b572ae
commit
6e2563c2a9
|
@ -529,6 +529,13 @@ y
|
|||
(assert y number?)
|
||||
(assert y boolean?)]
|
||||
|
||||
@defform*/subs[[(with-asserts ([id maybe-pred] ...) body ...+)]
|
||||
([maybe-pred code:blank
|
||||
(code:line predicate)])]{
|
||||
Guard the body with assertions. If any of the assertions fail, the
|
||||
program errors. These assertions behave like @racket[assert].
|
||||
}
|
||||
|
||||
|
||||
@section{Typed Racket Syntax Without Type Checking}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user