-
-
Notifications
You must be signed in to change notification settings - Fork 147
a few expansion ideas on use cases for demonstrated capabilities #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yay
you mean over defvar or defparameter? These are not explained, I still want to add a page about variables.
more examples welcome
this isn't covered, so a section on it is welcome. |
Sorry, I mean closures: (let ((n 0))
(defun counter () (incf n))) Most examples look a lot like that use case. |
oh right. Closures are mentioned in the Functions chapter, but quickly, we end with "See more on PCL" :D |
Keep your eyes open and the markdown files open! realizes you used the GitHub editor |
I would never edit code that way, but it's a convenient markdown preview. |
Uh oh!
There was an error while loading. Please reload this page.
Now that I've made one pull request I've got the cookbook on my mind, and a few smaller items occur to me, but I wanted input first.
While the point of the cookbook is explicitly to avoid discussing the Deep Magic, there are a few sections where I think a little more guidance on why you might choose something could be helpful.
let
overdefun
— encapsulation across a few functions to avoid globals, generators. Just demonstrating a lexical closure might not say enough.values
? CL itself offers clues:round, truncate,
etc.; distinguishing a failed lookup from anil
value.symbol-macrolet
is probably your friend (which is whatwith-slots
expands to for classes).I assume it makes most sense to do each of these separately, do deal with feedback.
The text was updated successfully, but these errors were encountered: