improve error handling for `defproc'

Closes PR 12780
This commit is contained in:
Matthew Flatt 2012-07-02 10:07:52 -06:00
parent aa68692b37
commit e8d9d4e9ca

View File

@ -104,11 +104,13 @@
(bound-identifier-mapping-put! ht arg #t))
(syntax-case arg ()
[(kw arg . rest)
(keyword? (syntax-e #'kw))
(and (keyword? (syntax-e #'kw))
(identifier? #'arg))
(bound-identifier-mapping-put! ht #'arg #t)]
[(arg . rest)
(identifier? #'arg)
(bound-identifier-mapping-put! ht #'arg #t)])))
(bound-identifier-mapping-put! ht #'arg #t)]
[else (void)])))
(cdr s-exp))
(unless (identifier? (car s-exp))
;; Curried: