[racket] Newbie question - Drscheme hangs on directory-exists?

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Jul 21 18:08:37 EDT 2010

On Jul 21, Ryan Culpepper wrote:
> You need to escape the backslash in your string:
> 
>    (directory-exists? "C:\\iconsource")
> 
> DrRacket colors the bad string red to indicate that there's a
> problem with it. If you insert the extra backslash, it turns green.
> 
> Wouldn't it be nice for DrRacket to signal an error when you hit
> enter instead? Yes, but it strikes me as a subtle problem. (We do,
> after all, want to permit multi-line repl entries.) I'll let someone
> who's thought about it more address that part.

(Funny coincidence: it's been doing what it does now for a while, and
recently I suggested changing things so the read error will be
reported instead of waiting for you to fix it.)

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


Posted on the users mailing list.