thephoeron / LLTHW

Learn Lisp The Hard Way source-code and full book text
MIT License
344 stars 56 forks source link

Don't modify constant data in exercise 1.1.3 #23

Closed leuler closed 9 years ago

leuler commented 9 years ago

Not to teach bad habits to the reader, I'd like to suggest to build the example lists in exercise 1.1.3 using LIST instead of QUOTE. Maybe additionally use elements that are self-evaluating to avoid having to write too many quotes, so (defvar test-list-a (list 1 2 3)) I don't know whether it's didactically better to change the way how test-list-b is constructed, too.

thephoeron commented 9 years ago

Thanks! that's a valid point. I have updated the exercise accordingly.