clarify that flat-contract is essentially useless now
This commit is contained in:
parent
9a5db10124
commit
d30e7c6771
|
@ -108,7 +108,11 @@ implement contracts @cite{Strickland12}.
|
||||||
@defproc[(flat-contract [predicate (any/c . -> . any/c)]) flat-contract?]{
|
@defproc[(flat-contract [predicate (any/c . -> . any/c)]) flat-contract?]{
|
||||||
|
|
||||||
Constructs a @tech{flat contract} from @racket[predicate]. A value
|
Constructs a @tech{flat contract} from @racket[predicate]. A value
|
||||||
satisfies the contract if the predicate returns a true value.}
|
satisfies the contract if the predicate returns a true value.
|
||||||
|
|
||||||
|
This function is a holdover from before flat contracts could be used
|
||||||
|
directly as predicates. It exists today for backwards compatibilty.
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@defproc[(flat-named-contract [type-name any/c]
|
@defproc[(flat-named-contract [type-name any/c]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user