[Top][All Lists]

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

Re: [Chicken-users] pp and write ignore keyword-style

From: John Cowan
Subject: Re: [Chicken-users] pp and write ignore keyword-style
Date: Tue, 20 Nov 2018 16:56:59 -0500

IMO, `write` should not respect `keyword-style` but use the invariant
syntax `#:foo` for keywords, as that always works, whereas `foo:`
and `:foo` don't.  The whole point of `write` is that you can reread
the output with `read` and get something that is the same (in the
sense of `equal?`) to what was written, modulo unwritable objects.

On Tue, Nov 20, 2018 at 4:52 PM Sven Hartrumpf <address@hidden> wrote:

pp and write (in chicken 5) do not respect the parameter (keyword-style);
Only display respects keyword-style.

#;1> (import (chicken pretty-print))
; loading /usr/local/chicken-5.0.0-x32/lib/chicken/9/ ...
#;2> (keyword-style)
#;3> (write '(arg1: 1))
(#:arg1 1)#;4> (pp '(arg1: 1))
(#:arg1 1)
#;5> (display '(arg1: 1))
(arg1: 1)#;6>


Chicken-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]