Greetings all, new to the list and new to Lisp. I purchased Land of Lisp, Kindle edition and am working my way through it but have hit a wall. In Ch 5, Building a text game engine, in the function describe-path my copy shows
(defun describe-path (edge) '(there is a ,(caddr edge) going ,(cadr edge) from here.))
While typing it in I got
Error while reading: A comma appears outside the scope of a backquote (or there are too many commas).
Error while reading: A comma appears outside the scope of a backquote (or there are too many commas).
Error while reading: A comma appears outside the scope of a backquote (or there are too many commas).
hmmm
I decided to see what would happen anyway.
(describe-path '(garden west door))
gave no return.
I thought to myself, maybe whoever converted the book to Kindle format botched it (not that such a thing would EVER happen) so I ditched the commas and replaced them with a single quote, thinking that shouldn't be right, but I am, after all, learning.
CL-USER 75 : 8 > (describe-path '(garden west door))
(THERE IS A (QUOTE (CADDR EDGE)) GOING (QUOTE (CADR EDGE)) FROM HERE.)
So I ditched the single quotes and tried it again, thinking, "Now I'm lost"
CL-USER 77 : 8 > (describe-path '(garden west door))
(THERE IS A (CADDR EDGE) GOING (CADR EDGE) FROM HERE.)
I checked the errata page, didn't see anything, searched the archives of this list, didn't find anything. What am I missing?
regards, Richard