This PR adds the #:guard-maker option to define-wrapper-type and make-wrapper-type-implementation, and adds a wrapper-guard-maker/c procedure for creating guard-makers from contracts, analogous to struct-guard/c. Note that this may not be the best for applying contracts, since the calling party is not known to the guard procedure, and thus it has to take any blame for contract violations itself.
This PR adds the
#:guard-maker
option todefine-wrapper-type
andmake-wrapper-type-implementation
, and adds awrapper-guard-maker/c
procedure for creatingguard-maker
s from contracts, analogous tostruct-guard/c
. Note that this may not be the best for applying contracts, since the calling party is not known to the guard procedure, and thus it has to take any blame for contract violations itself.Implements #202.