From cc5f3692a672b4cdf83c685204346227b5f20131 Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Mon, 3 Nov 2014 00:36:39 -0500 Subject: [PATCH] adding void to to-string --- decode.rkt | 1 + 1 file changed, 1 insertion(+) diff --git a/decode.rkt b/decode.rkt index 0eaf826..bd79554 100644 --- a/decode.rkt +++ b/decode.rkt @@ -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