chiark / gitweb /
mdw-base (stringify): Use princ-to-string.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 19 Dec 2006 16:11:45 +0000 (16:11 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 19 Dec 2006 16:11:45 +0000 (16:11 +0000)
mdw-base.lisp

index 072c8d6e69218cacfe1fa9f064fe8a9b3807c81a..88ef8bae5f45cec84e646609dbb0fa9f7e350a9f 100644 (file)
@@ -80,8 +80,7 @@ (defun stringify (str)
   (typecase str
     (string str)
     (symbol (symbol-name str))
-    (t (with-output-to-string (s)
-        (princ str s)))))
+    (t (princ-to-string str))))
 
 (defun mappend (function list &rest more-lists)
   "Apply FUNCTION to corresponding elements of LIST and MORE-LISTS, yielding