Compare commits

..
2 Commits
2 changed files with 3 additions and 2 deletions

No files matched your search

+2 -1
View File
@@ -241,8 +241,9 @@ b3
(define* (make-blame source value build-name positive negative original? (define* (make-blame source value build-name positive negative original?
#:key (context-limit #f)) #:key (context-limit #f))
(define build/memo-name (define build/memo-name
(let ((name (delay (build-name))))
(lambda () (lambda ()
(build-name))) (force name))))
(define all-the-info (define all-the-info
(make-all-the-info (make-all-the-info
+1 -1
View File
@@ -36,7 +36,7 @@ Enforcers are "late neg projections" in Racket, which look like the following:
(lambda (val neg-party) (lambda (val neg-party)
...)) ...))
This allows a contract to be partially evaluated when it's constructed and This allows a contract to be partially applied when it's constructed and
attached, before the value is actually checked. attached, before the value is actually checked.
See also (rosenthal utils contract combinators) for more examples, and See also (rosenthal utils contract combinators) for more examples, and