resources/data_readers.clj defines the reader function
{joda/inst taskmaster.util/->joda-inst}
src/tagmaster/util.clj contains
(ns taskmaster.util
(:import org.joda.time.DateTime))
(defmacro while-let
"Makes it easy to continue processing an expression as long as it is true"
[binding & forms]
`(loop []
(when-let ~binding
~@forms
(recur))))
;; Configure the printer
(defmethod print-method org.joda.time.DateTime
[dt out]
(.write out (str "#joda/inst \"" (.toString dt) "\"")))
(defmethod print-dup org.joda.time.DateTime
[dt out]
(.write out (str "#joda/inst \"" (.toString dt) "\"")))
;; Utility function for the reader
(defn ->joda-inst [time-str]
(org.joda.time.DateTime/parse time-str))
The following code works in
lein repl
from namespacedev=>
But in
proto-repl
it throws exceptionBut the qualified function in the exception does resolve at
proto-repl
resources/data_readers.clj defines the reader function
src/tagmaster/util.clj contains