I just discovered that define will fail at runtime, where let would fail at 
compile time. Besides helping to keep the indentation level from marching 
to the right "too much", what are the benefits of define over let?

--- snip ---
#lang racket

(define (f n) (+ n 1))

(define (foo)
  (define b (f a))
  (define a 7)
  
  b)

(define (bar)
  (let ([b (f a)]
        [a 7])

    b))
--- snip ---

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to