fix show box stack overflow

This commit is contained in:
Scott Richmond 2024-06-14 15:55:57 -04:00
parent 5a27d345eb
commit 7a7a3b8977
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
:list (string "[" (string/join (map show x) ", ") "]")
:dict (string "#{" (dict-show x) "}")
:set (string "${" (string/join (map show (keys x)) ", ") "}")
:box (string "box " (x :name) " [ " (show x) " ]")
:box (string "box " (x :name) " [ " (show (x :^value)) " ]")
:pkg (show-pkg x)
(stringify x)))

View File

@ -52,7 +52,7 @@
# (comment
(do
(def source `
"foo \bbar"
box foo = nil
`)
(def out (-> source
ludus