Open tomasz-biernacki opened 8 years ago
By the way in clojure:
user=> (doc load-file)
-------------------------
clojure.core/load-file
([name])
Sequentially read and evaluate the set of forms contained in the file.
nil
Sequentially is the keyword, but we first need #92 of course.
To expand on this, if we evaluate sequentially, form by form we need first to have all our repl specials as macros injected at runtime. Alternatively we could call read-eval-call
, which includes process-repl-specials
on each form but this looks hack-ish and rushy to me so I prefer to give priority to #92 first and come back on this later.
If we try to load a file
with
(load-file ...)
it will fail because(require ....)
is a repl special and needs "special" treatment.