[racket] Temporary Definitions with Ellipses

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue May 24 19:24:59 EDT 2011

If you wish to work with The Schemer's Guide, use Intermediate Plus Lambda and remember to say 

 (define (afunction x)
   (local ((define y (* x x))
           (define z (+ y 10)))
     (expt y z)))

instead of 

 (define (afunction x)
   (define y (* x x))
   (define z (+ y 10))
   (expt y z)))







On May 24, 2011, at 6:42 PM, Lewis wrote:

> Lewis Watmore
> 
> Thanks to St-Amour, Felleisen, Cleis, and Schatz for your quick response.
> 
>    You are all correct in that I was not using the "Beginning Student" language. I was using #lang racket but also "The Schemer's Guide" in which I had gotten to the part about top-down design and I remembered reading something about temporary definitions and gave it a try. Don't know what the limitations are regarding Beginning Student language but I will try it out.
> 
> Again, thanks.
> 
> -- 
> Copyright © 2011 Lewis Watmore
> This message and any attached documents are only for the use of the intended recipient(s), are confidential and may contain privileged information. Any unauthorized review, use, retransmission, or other disclosure is strictly prohibited. If you have received this message in error, please notify the sender immediately, and then delete the original message. Thank you.
> 
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users




Posted on the users mailing list.