Re: [racket-users] [racket users] Contracts and make-keyword-procedure question

2019-08-24 Thread Ben Greenman
The -> combinator doesn't support unspecified keywords. ->* won't work either. Instead, you can try writing a new contract combinator (keyword-procedure/c ?) Or, don't use define/contract and put the domain checks in the function body. -- You received this message because you are subscribed to

[racket-users] [racket users] Contracts and make-keyword-procedure question

2019-08-23 Thread Kevin Forchione
Suppose I have the following: (define/contract foo (-> ??? any/c symbol? symbol? any/c any) (make-keyword-procedure (lambda (kw kv a b . args) do-something …))) What sort of contract would I give to the kw parameter so that it basically accepts a list of unspecified keywords? What I’m doing