mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
Use built-in receive
This commit is contained in:
parent
f9f2817f37
commit
a6cab36d57
1 changed files with 5 additions and 5 deletions
|
@ -80,11 +80,11 @@
|
|||
;;; Utilities
|
||||
|
||||
;;; SRFI 8, too trivial to put in the dependencies list.
|
||||
(define-syntax receive
|
||||
(syntax-rules ()
|
||||
((receive ?formals ?producer ?body1 ?body2 ...)
|
||||
(call-with-values (lambda () ?producer)
|
||||
(lambda ?formals ?body1 ?body2 ...)))))
|
||||
;(define-syntax receive
|
||||
; (syntax-rules ()
|
||||
; ((receive ?formals ?producer ?body1 ?body2 ...)
|
||||
; (call-with-values (lambda () ?producer)
|
||||
; (lambda ?formals ?body1 ?body2 ...)))))
|
||||
|
||||
;;; Not the best LET*-OPTIONALS, but not the worst, either. Use Olin's
|
||||
;;; if it's available to you.
|
||||
|
|
Loading…
Add table
Reference in a new issue