Chapter 1.2
Printing, Strings, and Streams
"There is no such thing as luck; there is only adequate or inadequate preparation to cope with a statistical universe."
Now that you've got an idea of what Lisp is all about and you have your development environment configured to your liking, we can get moving on some real, practical code.
At the end of the day, no matter what the program you're working on does, at some point you will have to give something back to the user. The more interactive the program, the more data will be going back and forth between the user and your program. And users love interactivity---they like to know just how long a set of tasks will take, they want to see updates to data in real-time, they want feedback.
Since development in Lisp is so inherently interactive, it makes sense to think about your programs this way too. So we will be starting our exploration of Common Lisp with the core language features that underlie input and output: printing, strings, and streams.
Exercises:
- Strings
- More Strings
- Unicode and Strings
- Characters
- More Characters
- Character Codes
- Strings from Chars
- Printing
- More Printing
- Printing With prin1
- Printing With princ
- A Brief Introduction to Format
- A Little Bit More on Format
- Pathnames
- Streams
- File Streams
- Binary Streams
- Prompting Users
- Pretty-Printing