[racket] Nested scope in D vs Racket

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Aug 23 12:39:14 EDT 2010

On Aug 21, Shriram Krishnamurthi wrote:
> I *think* this was in the 5.0.1 release announcement?

The 5.0.1 change was to allow definitions anywhere in the body:

   (define (foo)
     (printf "hello ")
     (define x 'world)
     (displayln x))

(Note that that's not in the teaching languages.)


> It certainly is a mighty pity that typing "internal define" yields
> no hits in Help Desk.  (Eli, are you reading?)

It's a matter of adding an index term, IIRC.  Maybe Jon will want to
add that?

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


Posted on the users mailing list.