mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
utils: contract/blame: make-blame: Use delay + force for memoization.
This commit is contained in:
1 file changed
+3
-2
@@ -241,8 +241,9 @@ b3
|
||||
(define* (make-blame source value build-name positive negative original?
|
||||
#:key (context-limit #f))
|
||||
(define build/memo-name
|
||||
(lambda ()
|
||||
(build-name)))
|
||||
(let ((name (delay (build-name))))
|
||||
(lambda ()
|
||||
(force name))))
|
||||
|
||||
(define all-the-info
|
||||
(make-all-the-info
|
||||
|
||||
Reference in new issue
Block a user