mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08b1980f22 | ||
|
|
9454089804 |
No files matched your search
@@ -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
|
||||||
(lambda ()
|
(let ((name (delay (build-name))))
|
||||||
(build-name)))
|
(lambda ()
|
||||||
|
(force name))))
|
||||||
|
|
||||||
(define all-the-info
|
(define all-the-info
|
||||||
(make-all-the-info
|
(make-all-the-info
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user