Re: [racket-users] Change how to print builtins

2017-06-27 Thread Matthew Flatt
Besides struct-specific printing, the pretty printer from `racket/pretty` provides a hook for changing the printed form of anything via `pretty-print-size-hook` plus `pretty-print-print-hook`. At Thu, 22 Jun 2017 18:39:15 -0700 (PDT), Sam Waxman wrote: > Hello, > > I was having trouble figuring

Re: [racket-users] Change how to print builtins

2017-06-23 Thread David Storrs
For myself, I would like some better pretty-printing of nested data structures and for structs to have their field names included with the values so that they printed in a more hash-like format. On Thu, Jun 22, 2017 at 9:39 PM, Sam Waxman wrote: > Hello, > > I was having

[racket-users] Change how to print builtins

2017-06-22 Thread Sam Waxman
Hello, I was having trouble figuring out how to get racket to print values however I wanted. In particular, I was hoping to make exact nums print as decimals and true print as true (and not #t or #true). It would also be nice if I could custom print procedures so that + printed as plain old +