stamourv
2017-6-5 21:32:54
@notjack: I’d ping ryanc.
notjack
2017-6-5 21:37:15
@stamourv here, email, or github?
stamourv
2017-6-5 21:38:01
Github, I’d say.
ben
2017-6-5 23:20:29
does racket/contract
have a direct analog to Typed Racket’s Rec
? (seems like recursive-contract
has to be used with a define
)
ben
2017-6-5 23:20:57
I want something like (rec/c sexp (or/c symbol? (listof sexp)))
… but this is just an example, my actual contract isn’t just (treeof symbol?)
thinkmoore
2017-6-5 23:40:50
(define-syntax (rec/c stx) (syntax-parse stx [(_ name:id ctc) #‘(let ([name (let-syntax ([name (recursive-contract name)])]) name)]))
thinkmoore
2017-6-5 23:40:52
or there-abouts?
thinkmoore
2017-6-5 23:41:08
not sure if my shadowing works on not… my need to make a transformer…
ben
2017-6-5 23:47:43
WHOA. I did not realize you could do (contract-out (f (let ([x ....]) ....)))
lexi.lambda
2017-6-6 00:00:16
contract expressions are just that—expressions :)
samth
2017-6-6 01:41:53
You probably need a letrec there