Re: [racket-users] Web server: can't get radio-group formlet to process

2016-01-11 Thread Jay McCarthy
Hi Marc, Most formlets are typed as `(formlet/c (or/c false/c binding?))` where the `binding?` is returned when the thing is there and the `#f` is returned when it isn't. However, if you use `required`, then an exception is thrown on the `#f` because the form element must be present. Formlets like

[racket-users] Re: [racket] Sorry, but what's the correct way to use `#lang scribble/lp2`

2016-01-11 Thread Ismael Figueroa
Maybe it is too late for this, but I run into the same issue just now... In my case I get the same error when using: @include-section["path.rkt"] but it works when using @include-section[(submod "path.rkt" doc)] probably because the scribble/lp2 is not providing the doc submodule expected by s

[racket-users] Re: Code critique request: data/fetch, proc for walking hashes/lists

2016-01-11 Thread Jack Firth
I'd probably prefer using a fold over explicit recursion. This gets easier if you split your code into two steps - one that does just one level of lookup, and one that does nested lookups. Additionally, I'd prefer list indexes rather than pair lookup functions: (define (data/ref s key) (cond

[racket-users] Re: Code critique request: data/fetch, proc for walking hashes/lists

2016-01-11 Thread Jack Firth
I'd probably prefer using a fold over explicit recursion. This gets easier if you split your code into two steps - one that does just one level of lookup, and one that does nested lookups. Additionally, I'd prefer list indexes rather than pair lookup functions: (define (data/ref s key) (cond

[racket-users] Re: [racket] Sorry, but what's the correct way to use `#lang scribble/lp2`

2016-01-11 Thread WarGrey Gyoudmon Ju
Oh, yes, perhaps I did not understand Symbols well, especially in TEXT MODE. I don't remember how did I find the solution. Nonetheless, thank you all the same. On Tue, Jan 12, 2016 at 2:42 AM, Ismael Figueroa wrote: > Maybe it is too late for this, but I run into the same issue just now... > >