9. Printing

In languages like C++ or JAVA, it is possible to, say, write a huge GUI program without ever thinking about the printed representation of the objects (numbers, strings, arrays, etc.) that you’re working with. This is quite different in COMMON LISP, where due to how one typically works when developing something, you’re constantly seeing those objects being printed in the REPL.

This is why we’re devoting a chapter to printing (while Chapter 8 deals with “the other half” of the REPL’s front end). We’ll cover the low-level building blocks like WRITE, as well as high-level facilities like the pretty printer. (The pretty printer is the subject of the last four recipes, starting with 9-9. If you’ve never worked with it before, you might ...

Get Common Lisp Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.