Skip to content

Commit

Permalink
Remove automatic TaggedValue constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
greglook committed Mar 7, 2015
1 parent e8b4e2f commit 58cbe72
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/puget/data.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
(str \# tag \space (pr-str form))))


;; Remove automatic constructor functions.
(ns-unmap *ns* '->TaggedLiteral)
(ns-unmap *ns* 'map->TaggedLiteral)


(defmethod print-method TaggedLiteral
[v ^java.io.Writer w]
(.write w (str v)))
Expand All @@ -43,7 +48,7 @@
suitable for use as a default-data-reader function."
[tag value]
{:pre [(symbol? tag)]}
(->TaggedLiteral tag value))
(TaggedLiteral. tag value))


(defn tagged-literal?
Expand Down

0 comments on commit 58cbe72

Please sign in to comment.