Re: [racket-dev] Custom write that pretty-prints and works well with quote?

2012-07-09 Thread Neil Toronto
Yes! And `make-tentative-pretty-print-output-port' is helpful mostly because grepping for it in the source led me to racket/set.rkt, which is like an extended example. Thanks! Neil ⊥ On 07/08/2012 09:17 AM, Matthew Flatt wrote: Do `prop:custom-print-quotable' and/or

[racket-dev] Custom write that pretty-prints and works well with quote?

2012-07-07 Thread Neil Toronto
I've got an array structure like so: (struct: (A) strict-array ([shape : (Listof Index)] [data : (Vectorof A)]) Say I have this value: (strict-array '(2 2) #(1 2 3 4)) I want it to print like this at the REPL: #strict-array '(2 2) '[[1 2] [3 4]] If there's