(defn char-seq-from-file
[#^String f]
; (with-open r (new java.io.FileReader f) ;; throws an error
(let [r (new java.io.FileReader f)]
(char-seq r true)))
Does this code guarantees closing the file when an exception occurs?
"Slurp" does ("with-open" macro). "Line-seq" is not.
Is there any way of wrapping lazy code with "try" form?
Cheers,
-r.