[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pretty-print and ~C

This page is part of the web mail archives of SRFI 48 from before July 7th, 2015. The new archives for SRFI 48 contain all messages, not just those from before July 7th, 2015.



Since the primary function of pretty-print is to format code, shouldn't
it be defined in terms of write rather than display?  For consistency
with ~& it may actually make sense to define the minimal pretty-print to
be something like

  (define (pretty-print obj port)
    (newline port)
    (write obj port)
    (newline port))

Should ~C display the character, write the character, or display the
name of the character as in CL?  ~A is for display and ~S for write, so
I would suggest the latter (currently it's the equivalent of ~A).

-- 
Alex