[racket] simple problem with let .. I'm just NOT getting it

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Sat Mar 23 17:13:33 EDT 2013

It looks like the error may be coming from `file->list'.

Are parentheses balanced in /home/sam/REPLACEMENTS ?

Vincent



At Sat, 23 Mar 2013 15:56:34 -0400,
Sanjeev K Sharma wrote:
> 
> please help, this is driving me crazy. I sometimes run brackets together to get a clearer picture of completions 
> 
> #lang racket
> (let((x 5)
>      (y 2))
>   (let ((x 2)
>         [y x])
>     (list y x)))
> (let((a 2)
>      (b 3))
>   (let((a 2)
>        (b 3))
>     (printf "in this:~a~n"a)
>     (printf "~nreplace this:~a~nwith-this:~a~n"a b)))
> 
> (let((in-this(file->string(car(directory-list"/home/sam/beechy"))))
>      (replacements(file->list "/home/sam/REPLACEMENTS")))
>   (let((replace-this(caar replacements))
>        (with-this(cadadr replacements)))
>     (printf "in this:~a~n"(substring in-this 0 30))
>     (printf "~nreplace this:~a~nwith-this:~a~n"replace-this with-this)))
> 
> 
> _______
> OUTPUT
> 
> '(5 2)
> in this:2
> 
> replace this:2
> with-this:3
> . read: expected a `)' to close `('
> > 
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.