adding void to to-string

pull/29/head
Jacob Parker 10 years ago
parent 1d31988f2b
commit cc5f3692a6

@ -14,6 +14,7 @@
[(number? x) (number->string x)]
[(path? x) (path->string x)]
[(char? x) (format "~a" x)]
[(void? x) ""]
;; todo: guard against weird shit like lists of procedures
[(or (list? x) (hash? x) (vector? x)) (format "~v" x)] ; ok to convert datatypes
[else (error)])))) ; but things like procedures should throw an error

Loading…
Cancel
Save