Commits

Miki Tebeka  committed b1ec8f9

Clojure 1.4 and def ^:dynamic

  • Participants
  • Parent commits 9ba4564

Comments (0)

Files changed (2)

 (defproject csvlib "0.3.0"
   :description "A CSV library for Clojure, using csvreader.com"
   :url "https://bitbucket.org/tebeka/csvlib/src"
-  :dependencies [[org.clojure/clojure "1.2.0"]
+  :dependencies [[org.clojure/clojure "1.4.0"]
                  [com.csvreader/javacsv "2.0"]])

File src/csvlib.clj

   (:use [clojure.set :only (subset?)]))
 
 ; Default delimiter
-(def *delimiter* \,)
+(def ^:dynamic *delimiter* \,)
 ; Default charset
-(def *charset* "UTF-8")
+(def ^:dynamic *charset* "UTF-8")
 ; Flush every record write?
-(def *flush?* nil)
+(def ^:dynamic *flush?* nil)
 
 (defn- make-converter
   "Make a converter function from a conversion table."