On Jul 24, 2015, at 11:29 PM, sagyo12341...@gmail.com wrote:

> Nice to meet you.
> 
> 
> I'm a racket beginner and I'm not a English speaker. Please forgive my poor 
> skills.
> 
> In racket tutorials or HtDP, it uses some local definitions, as follows:
> 
> (define (f x)
>  (local [((define g x) (add1 x))]
>    (f (g x)))).
> 
> I'm not sure about the difference from the code:
> 
> (define (f x)
>  (define (g x) (add1 x))
>  (f (g x))).
> 
> Please help me. Thank you.
> 
> Taro

Other than the misplaced paren typo in the first bit of code, these will do 
exactly the same thing.

Alex Knauth


-- 
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