Re: [racket-users] difference in struct printing from default #:transparent versus make-constructor-style-printer

2020-09-03 Thread Jeremy Siek
Thanks Ryan! On Thursday, September 3, 2020 at 5:47:50 AM UTC-4 rmculp...@gmail.com wrote: > The Racket printer uses a separate property to determine whether a struct > is quotable. If you add > > #:property prop:custom-print-quotable 'never > > to the declarations of Int2 and Prim2, your pr

Re: [racket-users] difference in struct printing from default #:transparent versus make-constructor-style-printer

2020-09-03 Thread Ryan Culpepper
The Racket printer uses a separate property to determine whether a struct is quotable. If you add #:property prop:custom-print-quotable 'never to the declarations of Int2 and Prim2, your program should produce the output you expect. I'll add a note to the docs for make-constructor-style-printer

[racket-users] difference in struct printing from default #:transparent versus make-constructor-style-printer

2020-09-02 Thread Jeremy Siek
I'm seeing some bad behavior from make-constructor-style-printer when there are lists mixed in with the structs. It seems to switch from print mode to write mode when going under a list. Whereas the default printer for transparent structs gets this right. The following program demonstrates the d