title: Can't take value of a macro (clojure)
body: <p>In this segment of clojure code:</p>
  
  <pre><code>(defn makeStructs ;line 27
   "open fName as a file and turns each line into a struct. Returns a Vector of structs"
   [fName]
     with-open[r (reader (file fName))]
     (let [r 
        res (doall (map makeStruct (line-seq r)))
        ]    
    (. r close)
       res
    ) 
  )
  </code></pre>
  
  <p>I am getting this compiler error:</p>
  
  <pre><code>Exception in thread "main" java.lang.Exception: Can't take value of a macro: #'clojure.core/with-open (clojureHW.clj:27)
  </code></pre>
  
  <p>Line 27 is commented above.</p>
  
  <p>Any idea what the problem is?</p>