[racket] internal define in define

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Sep 22 13:46:57 EDT 2011

20 minutes ago, Jon Rafkind wrote:
> Yet another option that I mentioned was: | (+ 1 { n = 8 | (sqr x) =
> (* x x) | (sqr n) })
> 
> 
> #lang honu
> 
> (1 + { var n = 8;
>        sqr(x){ x * x }
>        sqr(n) })
> 
> > 65
> 
> Of course I sort of cheated and just (as in 5 seconds ago) changed
> {} from (begin ...) to (let () ...)

It's obvious in a curlied language.  (I'd be surprised by {}s being a
`begin'.)

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


Posted on the users mailing list.