What You've Learned
In this chapter, we created a custom REPL to supercharge our text adventure game. Along the way, you learned the following:
The
printandreadfunctions let you directly communicate with the user through the console. These two functions work in a computer-friendly way.Other input/output functions are not as elegant as
readandprint, but are friendlier for interacting with humans. Examples includeprincandread-line.A homoiconic programming language stores its program code and program data in a similar format. Lisp’s quoting, quasiquoting,
eval, and macro features make it extremely homoiconic.It’s easy to write your own custom REPL.
It’s simple to transform your internal Lisp data into the format most suitable for your program’s ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access