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
print
andread
functions 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
read
andprint
, but are friendlier for interacting with humans. Examples includeprinc
andread-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 ...
Get Land of Lisp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.