Re: [racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Solved some of which was offline. First was my misunderstanding about having to document implied procedures when using a struct. Second was that I missed a parameter print-as-expression which should be parameterized as #f for the evaluator. Thanks everyone! Deren On Wed, Aug 12, 2020, 7:08 AM De

Re: [racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Hi Matthew, > A `@defstruct*[polynomial .]` form does document `polynomial?`. > Although the word `polynomial?` doesn't appear on the page, it's > implied by the `struct` form on the page. Thank you, I understand. Deren -- You received this message because you are subscribed to the Google

Re: [racket-users] Scribble and structs

2020-08-12 Thread Matthew Flatt
At Wed, 12 Aug 2020 08:32:25 -0400, Deren Dohoda wrote: > If I remove the @defproc of polynomial? then I do not get the error, though > then of course that definition never appears in the document. However, if I > instead remove the @defstruct* then the error also disappears. But > @defstruct* does

Re: [racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Hi Matthew, Structs should not cause any particular problem for Scribble. I'm > puzzled by the problem with `gen:custom-write`, because that should > certainly work with sandboxes and `@examples`. I will try to look at some included documents with the main distribution to see if I can figure out

Re: [racket-users] Scribble and structs

2020-08-12 Thread Matthew Flatt
At Wed, 12 Aug 2020 04:07:58 -0700 (PDT), Deren Dohoda wrote: > I have two questions. The first is: is there a way to have scribble / > sandbox use the gen:custom-write property of a structure? When I use > @examples the output is just the bare structure output, not using the > gen:custom-write

Re: [racket-users] Scribble and structs

2020-08-12 Thread Laurent
I have no idea about custom-write, but for the duplicate keys, maybe you installed the collection multiple times? Take a look at the output of `raco pkg show` maybe. On Wed, Aug 12, 2020 at 12:08 PM Deren Dohoda wrote: > Hi racketeers, > > I have two questions. The first is: is there a way to ha

[racket-users] Scribble and structs

2020-08-12 Thread Deren Dohoda
Hi racketeers, I have two questions. The first is: is there a way to have scribble / sandbox use the gen:custom-write property of a structure? When I use @examples the output is just the bare structure output, not using the gen:custom-write procedure. Second, I am working on a very simple poly