4 ms·
Maybe, maybe not. Lisp files can have top-level structure (relationship between top-level forms). Like defining a class here, function there. This is the topi
by kazinator 5y ago
Maybe, maybe not. Lisp files can have top-level structure (relationship between top-level forms). Like defining a class here, function there.
This is the topic of a StackOverflow question:
https://stackoverflow.com/questions/25720046/why-is-a-lisp-file-not-a-list-of-statements https://stackoverflow.com/questions/25720046/why-is-a-lisp-f...
One advantage would be that the stuff between (begin document) and (end document) consists of multiple forms which are separately read, expanded and processed, which can be quite important in some situations.
Also there is the possibility that some form in the document could load another file.
(begin document)
(load "boilerplate")
...