I have a Clojure form data structure:
{: foo '("bar" "blat")}
and tried to write them to a file using various pr / prn / print. However, every time a structure is written as
{: foo ("bar" "blat")}
then when I try to read in it using the load file, I get an error message, for example:
java.lang.ClassCastException: java.lang.String cannot be added to clojure.lang.IF n (build-state.clj: 79)
presumably since the list is evaluated as a function call when it is read. Is there a way to write a structure with lists in their cited form?
thanks Nick
source share