How could this tiny SRFI-8 (RECEIVE) be added? Unfortunately, just loading the reference implementation (which uses define-syntax) does not work.
Logged In: YES user_id=241598
I think the following implementation will do it, if crudely:
(define-macro (receive formals expr . body) `(bind ((,@formals ,expr)) ,@body))
Log in to post a comment.
Logged In: YES
user_id=241598
I think the following implementation will do it, if crudely:
(define-macro (receive formals expr . body)
`(bind ((,@formals ,expr))
,@body))