[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(length (prin1-to-string foo)) ;looking for a better way
- To: info-mcl@cambridge.apple.com
- Subject: (length (prin1-to-string foo)) ;looking for a better way
- From: engber@aristotle.ils.nwu.edu (Mike Engber)
- Date: Wed, 22 May 91 14:29:25 CDT
Is there a more efficient way to find the prin1 length of an object?
Actually prin1'ing it first seems so wasteful.
Also, is there a good way to determine if you can prin1 a LISP object
and read it back (without printing it first) i.e.
(prin1-p some-hash-table) -> nil
(prin1-p most-things) -> t
-ME