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 <[email protected]> wrote: > Hi. > > 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/ > chicken.pretty-print.import.so ... > #;2> (keyword-style) > #:suffix > #;3> (write '(arg1: 1)) > (#:arg1 1)#;4> (pp '(arg1: 1)) > (#:arg1 1) > #;5> (display '(arg1: 1)) > (arg1: 1)#;6> > > Ciao > Sven > > _______________________________________________ > Chicken-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/chicken-users >
_______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
