|
|
|
|
|
by verandacoffee
2507 days ago
|
|
In the first installment of this series, the author use := for assignment, instead of setf. This is at least using undefined behaviour, as keywords are meant to be constant symbols, not themselves assignable to. Sbcl allows assignment to the function slot of a keyword, but LispWorks doesn't. Using undefined behaviour almost certainly guarantees incompatibilities between implementations, and should always be avoided. Here, it is a central feature. This makes the book untrustworthy, whatever good features it might have. I must point out that setf is extensible (defsetf and so on) and therefore much better anyway. (I must say though that one of the poor choices made in the C-family of languages is the choice of = as assignment, when Algol already had used := for this.) |
|