Reuse `case-lambda' syntax in optimizer.

This commit is contained in:
Sam Tobin-Hochstadt 2011-08-23 12:07:26 -04:00
parent 92fa4a8d58
commit d6f1c35e1b

View File

@ -49,7 +49,7 @@
(cons (car l)
(map (optimize) (cdr l)))))
#'([formals e ...] ...))
#:with opt (syntax/loc/origin this-syntax #'op (case-lambda opt-parts ...)))
#:with opt (syntax/loc/origin this-syntax #'op (op opt-parts ...)))
(pattern ((~and op (~or (~literal let-values) (~literal letrec-values)))
([ids e-rhs:expr] ...) e-body:expr ...)
#:with (opt-rhs ...) (syntax-map (optimize) #'(e-rhs ...))