I can't get my head around Racket's exception mechanism. I want to say "try something, and if it fails, return a specified default value".
This returns the expected result: (with-exception-handler (lambda (x) "Oops") (/ 1 0)) because it returns "Oops". However, if I type (with-exception-handler (lambda (x) "Oops") (/ 6 2)) then I also get "Oops". It should return 3. Is there a simple way to accomplish what I'm looking for? _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users