Re: Ignore errors while evaluating with `primitive-eval'

2013-08-19 Thread Mark H Weaver
Hi, Alexandru Cojocaru writes: > is it possible to ignore errors when evaluating a badly formed > expression? Yes. An easy way is to use 'false-is-exception', like this: (false-if-exception (primitive-eval '(this is an error))) => #f However, this won't work if you need to tell the diffe

Ignore errors while evaluating with `primitive-eval'

2013-08-19 Thread Alexandru Cojocaru
Hi guys, is it possible to ignore errors when evaluating a badly formed expression? Take as an example this: (let ((cs (string->list "display"))) (let l ((cs (cdr cs)) (s (car cs))) (primitive-eval `(begin (,(list->symbol s) "aha") (newline