Re: [racket-users] [ANN] Introducing "social" contracts

2021-08-16 Thread Siddhartha Kasivajhula
Hi David, Yes, both ->* and ->i are supported. The forms in social-contract expand to flat or arrow contracts, which, since these work within ->* and ->i there shouldn't be any issues there. The only built-in form it doesn't support yet is case->, and that's because at the moment case-> specifical

Re: [racket-users] [ANN] Introducing "social" contracts

2021-08-16 Thread David Storrs
Hi Siddhartha, Will this package handle ->* and ->i, either now or in the future? On Sat, Aug 14, 2021 at 1:40 PM Siddhartha Kasivajhula wrote: > Fellow Scheming Racketeers, > When you've written a function that takes an integer and returns another > one, you may write a contract for it as (->

Re: [racket-users] Re: Is this "inside out" macro technique common?

2021-08-16 Thread Michael Ballantyne
The essential primitive here seems to me to be: (define-syntax (splice stx) (syntax-case stx () [(_ e ...) (eval-syntax #'(begin e ...))])) With with-quasisyntax being: (define-syntax-rule (with-quasisyntax ([a b] ...) template) (splice (with-syntax ([a b] ...) (quasisyntax templa