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.
cond-else-if-to-cond
1 parent 007f69f commit 5dcdb5fCopy full SHA for 5dcdb5f
typed-racket-lib/typed-racket/static-contracts/combinators/simple.rkt
@@ -35,12 +35,10 @@
35
;;
36
;; Note: does not handle cycles but there shouldn't be any
37
(define (stx-equal? s1 s2)
38
- (cond [(and (identifier? s1) (identifier? s2))
39
- (free-identifier=? s1 s2)]
40
- [else
41
- (if (and (syntax? s1) (syntax? s2))
42
- (equal?/recur (syntax-e s1) (syntax-e s2) stx-equal?)
43
- (equal?/recur s1 s2 stx-equal?))]))
+ (cond
+ [(and (identifier? s1) (identifier? s2)) (free-identifier=? s1 s2)]
+ [(and (syntax? s1) (syntax? s2)) (equal?/recur (syntax-e s1) (syntax-e s2) stx-equal?)]
+ [else (equal?/recur s1 s2 stx-equal?)]))
44
45
(struct simple-contract static-contract (syntax kind name)
46
#:transparent
0 commit comments