Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-14 Thread Eli Barzilay
5 hours ago, Matthew Flatt wrote: > At Wed, 13 Oct 2010 20:48:05 -0400, Eli Barzilay wrote: > > I'm getting an escape one: > > > > -> (let ([cont? #t]) > >(with-handlers ([exn:break? > > (lambda (e) > > (when cont? > >

Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-14 Thread Matthew Flatt
At Thu, 14 Oct 2010 11:15:24 +0100, Peter Kiggins wrote: > On 12 October 2010 16:50, Matthew Flatt wrote: > > At Tue, 12 Oct 2010 14:48:49 +0100, Peter Kiggins wrote: > >> [I am completely new to both Scheme and racket, so if my questions are > >> Looking at traversal of a file tree led me to in-d

Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-14 Thread Matthew Flatt
At Wed, 13 Oct 2010 20:48:05 -0400, Eli Barzilay wrote: > Yesterday, Matthew Flatt wrote: > > > > Code that raises an exception can include a continuation in the > > exception to allow a restart, and the exception raised for an > > asynchronous break (which is usually triggered when you hit Ctl-C)

Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-14 Thread Peter Kiggins
On 12 October 2010 16:50, Matthew Flatt wrote: > At Tue, 12 Oct 2010 14:48:49 +0100, Peter Kiggins wrote: >> [I am completely new to both Scheme and racket, so if my questions are >> Looking at traversal of a file tree led me to in-directory. >> >> [ ... ] >> > No particular restart system built i

Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-13 Thread Eli Barzilay
Yesterday, Matthew Flatt wrote: > > Code that raises an exception can include a continuation in the > exception to allow a restart, and the exception raised for an > asynchronous break (which is usually triggered when you hit Ctl-C) > does that. [...] Is it supposed to be a full continuation? I'

Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-12 Thread Matthias Felleisen
Peter could roll his own in-directory recursive function in just a few line catching the relevant exceptions: > (define (traverse d) > (parameterize ([current-directory d]) > (define d (directory-list)) > (for-each (lambda (x) > (printf "~a " x) > (defi

Re: [racket] Handling errors from in-directory - and handling errors more generally

2010-10-12 Thread Matthew Flatt
At Tue, 12 Oct 2010 14:48:49 +0100, Peter Kiggins wrote: > [I am completely new to both Scheme and racket, so if my questions are > Looking at traversal of a file tree led me to in-directory.  The > problem is that as soon as it hits a directory it cannot search > (permissions, whatever...) it drop

[racket] Handling errors from in-directory - and handling errors more generally

2010-10-12 Thread Peter Kiggins
[I am completely new to both Scheme and racket, so if my questions are easily answered by reading some documentation, please just point me at it.] Looking at traversal of a file tree led me to in-directory.  The problem is that as soon as it hits a directory it cannot search (permissions, whatever