One option is to use Alex Knauth's package quote-bad.

https://docs.racket-lang.org/quote-bad/index.html?q=constructor#%28part._.Changing_the_printing_style_to_avoid_printing_bad_uses_of_quote%29

If you want to see how he sets the print handler:

https://github.com/AlexKnauth/quote-bad/blob/master/constructor-style-print/lang/runtime-config.rkt

/Jens Axel


2016-07-27 20:37 GMT+02:00 Delphine Demange <delphine.dema...@gmail.com>:

> Hi,
>
> I'd like to use the Constructor printing style in the command-line REPL,
> so that it behaves the same as in my current DrRacket config, e.g.
>
> > (list 1 2 3)
> (list 1 2 3)
>
> Using https://docs.racket-lang.org/reference/printing.html, I've been
> trying to set (interactively) the right parameters to the printer, without
> success.
>
> Is there any way to achieve this (either manually, or using a file similar
> to org.racket-lang.prefs.rktd)?
>
> I may have missed something in the documentation.
> I'm running DrRacket 6.0.
>
> Thanks for your help,
> Delphine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- 
Jens Axel Søgaard

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to