> On Aug 10, 2016, at 9:08 AM, Robby Findler
> wrote:
>
> On Wed, Aug 10, 2016 at 8:10 AM, Alex Knauth wrote:
>>> I believe this fixes a bug in DrRacket but the way these handlers are
>>> set up is pretty complicated. Here's an example
On Wed, Aug 10, 2016 at 8:10 AM, Alex Knauth wrote:
>> I believe this fixes a bug in DrRacket but the way these handlers are
>> set up is pretty complicated. Here's an example program that behaves
>> differently in 6.6 and the version with those commits. I think the 6.6
>>
> On Aug 10, 2016, at 8:04 AM, Robby Findler
> wrote:
>
> This is the change to DrRacket:
>
>
> https://github.com/racket/drracket/commit/edfea2c649d4d1cfdc2c9facf4dbdb4663be0a07
>
> (you'll want the subsequent commit too, tho).
>
> I believe this fixes a bug
This is the change to DrRacket:
https://github.com/racket/drracket/commit/edfea2c649d4d1cfdc2c9facf4dbdb4663be0a07
(you'll want the subsequent commit too, tho).
I believe this fixes a bug in DrRacket but the way these handlers are
set up is pretty complicated. Here's an example program that
> On Aug 10, 2016, at 7:34 AM, Delphine Demange
> wrote:
>> The `constructor-style-print` function isn't supposed to add a newline.
>
> Okay, I got confused because in DrRacket, running
>
> --
> #lang constructor-style-print racket
> true
> false
> (cdr
The lack of newlines is probably because of a bug that I pushed a fix
for. Maybe try a shapshot build?
https://pre.racket-lang.org/installers/
Robby
On Wed, Aug 10, 2016 at 7:34 AM, Delphine Demange
wrote:
>
>> Yes, DrRacket's "constructor" mode does this. This code
> 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
> On Aug 10, 2016, at 4:53 AM, Delphine Demange
> wrote:
>
> 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):
>
> ;;
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
> On Jul 28, 2016, at 12:32 PM, Delphine Demange
> wrote:
>
>
>> 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
> 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
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:
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
15 matches
Mail list logo