There are two more cases where bad syntax is handled incorrectly. The statement '(let x 5)' will generate a segmentation fault.
The statement '(letrec x 5)' returns 5. According to the R5RS, the syntax is wrong so it should be throwing out a "Bad syntax of binding spec in letrec" error message.
Log in to post a comment.