[Readable-discuss] Common Lisp printing pushed into "devel" branch
Readable Lisp/S-expressions with infix, functions, and indentation
Brought to you by:
dwheeler
From: David A. W. <dwh...@dw...> - 2014-10-15 22:36:04
|
The Common Lisp implementation now has a set of printing routines, just like the Scheme implementation, on the "devel" branch. The external interface is designed to look like Common Lisp, not Scheme. For example, "write-readable" is intentionally similar to "write". Thus: (write-readable '(1 2 3)) does what you would expect. It takes a ":notation" parameter if you want to control the format; by default it uses the current format, but it will always use at least basic curly-infix. It implements circularity checking (if you enable it with :circle t). The current implementation handles atoms (e.g., numbers and symbols) and conses, though not other Common Lisp datatypes (yet). --- David A. Wheeler |