Skip to content

Commit f12415f

Browse files
resyntax-ci[bot]samth
authored andcommitted
Fix 1 occurrence of let-to-define
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
1 parent 73c5ea8 commit f12415f

File tree

1 file changed

+6
-5
lines changed
  • typed-racket-lib/typed-racket/static-contracts/combinators

1 file changed

+6
-5
lines changed

typed-racket-lib/typed-racket/static-contracts/combinators/exist.rkt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
(define (sc->contract v f)
3030
(match-define (exist-combinator (list names doms rngs)) v)
3131
(parameterize ([static-contract-may-contain-free-ids? #t])
32-
(let ([a (with-syntax ([doms-stx (f doms)]
33-
[rngs-stx (f rngs)]
34-
[n (car names)])
35-
#'(->i ([n doms-stx]) (_ (n) rngs-stx)))])
36-
a)))
32+
(define a
33+
(with-syntax ([doms-stx (f doms)]
34+
[rngs-stx (f rngs)]
35+
[n (car names)])
36+
#'(->i ([n doms-stx]) (_ (n) rngs-stx))))
37+
a))
3738
(define (sc->constraints v f)
3839
(simple-contract-restrict 'flat))])
3940

0 commit comments

Comments
 (0)