[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Our MUFCSPC entry.
- To: common-lisp@su-ai, rich%bach.DEC@decwrl.DEC.COM
- Subject: Our MUFCSPC entry.
- From: greek%bach.DEC@decwrl.DEC.COM (What have I done?)
- Date: Fri, 11 Jul 1986 11:16:00 -0000
We think the following pretty-printer for DO is pretty cute. Of course, one
could say that we have an unfair perspicuity advantage since we've extended
FORMAT to do pretty-printing.
(define-list-print-function do (list stream)
(format stream "~1!~W~^ ~:I~@_~/sys::bind-list/~^ ~_~
~1!~^~W~^ ~_~W~^~@{~%~W~^~}~.~
~1I~@{~^~%~W~}~."
list))
Just in case you're wondering what the ~/SYS::BIND-LIST/ directive is:
(define-format-directive sys::bind-list (list stream colon-p atsign-p)
(declare (ignore atsign-p colon-p))
(format stream "~1!~@{~1!~W~^ ~:I~@_~@{~W~^ ~:_~}~.~^ ~%~}~." list))
Special thanks to Dick Waters.
- Paul & Rich