> Yes, DrRacket's "constructor" mode does this. This code was based on the
> teaching languages though, and the teaching languages set
> `booleans-as-true/false` to false here:
> https://github.com/racket/htdp/blob/master/htdp-lib/htdp/bsl/runtime.rkt#L15
>
> Neither one is really more
Hi,
Just for the sake of completeness.
In constructor-style-print.rkt, I've switched on the printing of booleans as
"true" and "false" as follows (editing line 14):
;; print-convert/constructor-style : Any -> Any
(define (print-convert/constructor-style v)
(parameterize
Cool, I've updated the package, and it works great now!
Thanks again,
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
> I have just added `constructor-style-print/racket/init` to the `quote-bad`
> package so that you can do this:
>
>
> $ racket -I constructor-style-print/racket/init
> [...]
> What it does is require `racket/init` and
> `constructor-style-print/lang/runtime-config`, and then call the
Thanks for the prompt reply!
I managed to install the package.
For my current use-case, using the racket in module mode, with the right #lang
directive at the top of the .rkt file is enough.
For the interactive mode, however, I was expecting something like
racket -I 'constructor-style-print
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
6 matches
Mail list logo