CDs and Records CDs and Records To keep track of CDs that need to be ripped to MP3s and which CDs should be ripped first, each record in the database will contain the title and...
Wrapping Up(总结) Wrapping Up(总结) Now, an interesting thing has happened. You removed duplication and made the code more efficient and more general at the same time. That’s often...
Lists and Lisps Lists and Lisps ALL CAPS • SO RIGHT YET SO WRONG. Lisps are famous for having little distinction between data and code. They use the same structures to repr...
Rest Parameters(剩余形参) Rest Parameters(剩余形参) Optional parameters are just the thing when you have discrete parameters for which the caller may or may not want to provide values....
Strings(字符串) Strings(字符串) As mentioned earlier, strings in Common Lisp are really a composite data type, namely, a one-dimensional array of characters. Consequently, I’ll cover...
Constructing New Pathnames(构造新路径名) Constructing New Pathnames(构造新路径名) You can construct arbitrary pathnames using the MAKE-PATHNAME function. It takes one keyword argument for...
Good Object-Oriented Design Good Object-Oriented Design That’s about it for the main features of Common Lisp’s object system. If you have lots of experience with object-oriente...