Re: clojure.core.match/match: very strange behavior

2017-01-30 Thread Josh Tilles
I’m not 100% sure about any of this, but I think you’re tripping on how core.match handles symbols . So in (match dt dt2 true :else false), the code is *not* comparing the value in the dt Var to the value in the dt2 Va

clojure.core.match/match: very strange behavior

2017-01-30 Thread Joachim De Beule
Does anybody understand what is going on here? (require '[clojure.core.matcher :refer [match]] (import '[org.joda.time DateTimeZone DateTime]) (def dt (DateTime. 2013 02 12 4 30 0 (DateTimeZone/forOffsetHours -2))) (def dt2 (clj-time.coerce/from-string "2013-02-12T04:30:00.000-02:00")) (match dt