Email list hosting service & mailing list manager

pretty-print and ~C Alex Shinn (22 Dec 2003 04:11 UTC)
Re: pretty-print and ~C Ken Dickey (22 Dec 2003 16:26 UTC)
Re: pretty-print and ~C Ken Dickey (23 Dec 2003 00:03 UTC)
Re: pretty-print and ~C Alex Shinn (23 Dec 2003 04:21 UTC)

Re: pretty-print and ~C Ken Dickey 22 Dec 2003 07:27 UTC

On Monday 22 December 2003 05:08 am, Alex Shinn wrote:
> 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).

You are correct in both cases.  I will change the code.

Thanks,
-KenD