utils: contract/blame: make-blame: Use delay + force for memoization.

This commit is contained in:
Hilton Chain committed 2026-09-14 10:33:58 +08:00
1 parent 9454089804
commit 08b1980f22
1 file changed
+3 -2
+3 -2
View File
@@ -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