;; Very useful from a REPL
;; Paths are specified as strings using canonical file path notation
;; (rather than clojure-style namespaces dependent on the JVM classpath).
;; The working directory is set to wherever you invoked the JVM from,
;; likely the project root.
(load-file "src/mylib/core.clj")
;; now you can go and evaluate vars defined in that file.
;; Very useful from a REPL
;; Paths are specified as strings using canonical file path notation
;; (rather than clojure-style namespaces dependent on the JVM classpath).
;; The working directory is set to wherever you invoked the JVM from,
;; likely the project root.
(load-file "src/mylib/core.clj")
;; now you can go and evaluate vars defined in that file.
Comments top
1 comment(s) for load-file.
Be aware that this function is intended to load code only. If your data structures or a string in them grow bigger than around 65,535 it crashes.
Exception similar to:
Please use read-string instead.
Example:
Source: Google Groups
Be aware that this function is intended to load code only. If your data structures or a string in them grow bigger than around 65,535 it crashes.
Exception similar to:
Please use read-string instead.
Example: Source: Google Groups