improve rec
svn: r9038 original commit: a93dbcb135ddcc0df25eb07d20f287c93e111f93
This commit is contained in:
parent
9cfbf28481
commit
0b86826a0d
|
@ -124,12 +124,12 @@
|
|||
#`(letrec ((name (lambda (id ...) body ...)))
|
||||
#,(syntax-property #'name 'inferred-name (syntax-e #'name)))]
|
||||
[(rec (name id ... . did) body ...)
|
||||
(andmap identifier? (syntax->list #'(name id ...)))
|
||||
(andmap identifier? (syntax->list #'(name did id ...)))
|
||||
#`(letrec ((name (lambda (id ... . did) body ...)))
|
||||
#,(syntax-property #'name 'inferred-name (syntax-e #'name)))]
|
||||
[_
|
||||
(raise-syntax-error
|
||||
#f "expects either a variable followed by an expresion, or a (possibly dotted) sequence of variables followed by a body" stx)]))
|
||||
#f "expects either an identifier followed by an expresion, or a (possibly dotted) sequence of identifiers followed by a body" stx)]))
|
||||
|
||||
(define-syntax (evcase stx)
|
||||
(syntax-case stx ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user