LLTHW icon indicating copy to clipboard operation
LLTHW copied to clipboard

Chapter 1.12, Namespaces, Packages etc.

Open thephoeron opened this issue 10 years ago • 2 comments

Extend the exercises on Packages to include an enlightening factoid from The Complete Idiot's Guide to Common Lisp Packages by Erann Gat:

"The most important thing to understand about packages is that they are fundamentally a part of the Lisp reader and not the evaluator."

This is essential to the understanding of macroexpansion across package namespaces, as pointed out by Doug Hoyte in regards to anaphoric macros; thus the namespaces and packages chapter should potentially appear before the new chapters in part one for Macros and Reader Macros, per issue #15.

thephoeron avatar Mar 27 '15 09:03 thephoeron

We can re-visit basic reader interaction when we start discussing packages. Something like briefly showing the result of (read-from-string "nonexistent-package:foo"), and discussing what it actually means.

inaimathi avatar Mar 27 '15 18:03 inaimathi

Yeah that would be a good approach

thephoeron avatar Mar 27 '15 18:03 thephoeron