Minor cleanup.
This commit is contained in:
parent
8f3a4f3f07
commit
f7c7dc2052
|
|
@ -268,14 +268,12 @@
|
||||||
|
|
||||||
(define (joy-inscribe stack0 expression dict0)
|
(define (joy-inscribe stack0 expression dict0)
|
||||||
(receive (def stack) (pop-list stack0)
|
(receive (def stack) (pop-list stack0)
|
||||||
(if (null-list? def)
|
(if (null-list? def) (abort "Empty definition.")
|
||||||
(abort "Empty definition.")
|
|
||||||
(receive (name body) (car+cdr def)
|
(receive (name body) (car+cdr def)
|
||||||
(if (symbol? name)
|
(if (not (symbol? name)) (abort "Def name isn't symbol.")
|
||||||
(let ((dict (hash-table-copy dict0)))
|
(let ((dict (hash-table-copy dict0)))
|
||||||
(hash-table-set! dict name body)
|
(hash-table-set! dict name body)
|
||||||
(values stack expression dict))
|
(values stack expression dict)))))))
|
||||||
(abort "Def name isn't symbol."))))))
|
|
||||||
|
|
||||||
|
|
||||||
;██╗ ██╗████████╗██╗██╗ ███████╗
|
;██╗ ██╗████████╗██╗██╗ ███████╗
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue