[racket-dev] Internal definitions in `define'

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Dec 29 14:08:56 EST 2011

Does anyone know of a reason to not have an implicit `begin' in a
plain definition, translated into an implicit (let () ...) in racket?

When I see things like this:


I think that people expect the syntax of `define' to be uniform, so if
you can switch these:

  (define (foo x) (+ x 1))
  (define foo (+ 8 1))

then the expectation is for the same to work when there are multiple

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the dev mailing list.