We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
case-lambda-with-single-case-to-lambda
1 parent 8dbc393 commit 3272ce4Copy full SHA for 3272ce4
typed-racket-lib/typed-racket/typed-reader.rkt
@@ -78,16 +78,12 @@
78
1))))))
79
80
(define parse-id-type
81
- (case-lambda
82
- [(ch port src line col pos)
83
- ;; `read-syntax' mode
84
- (datum->syntax
85
- #f
86
- (parse port
87
- (lambda () (read-syntax src port ))
88
- src)
89
- (let-values ([(l c p) (port-next-location port)])
90
- (list src line col pos (and pos (- p pos)))))]))
+ (λ (ch port src line col pos)
+ ;; `read-syntax' mode
+ (datum->syntax #f
+ (parse port (lambda () (read-syntax src port)) src)
+ (let-values ([(l c p) (port-next-location port)])
+ (list src line col pos (and pos (- p pos)))))))
91
92
(define (readtable)
93
; don't install the reader macro if a dispatch macro on the open brace has already been installed
0 commit comments