justinethier/husk-scheme — Issue #57: Improvements to Error handling
Author: justinethier
Created: 2011-11-23 18:55:43+00:00
State: open

Error handling in general needs to be improved. In particular, macros need more robust error handling to make it easier to track down errors.

Also, the following are errors and should not be allowed, per R5RS:

(define define 3)

(begin (define begin list))

(let-syntax
((foo (syntax-rules ()
((foo (proc args ...) body ...)
(define proc
(lambda (args ...)
body ...))))))
(let ((x 3))
(foo (plus x y) (+ x y))
(define foo x)
(plus foo x))