Skip to content

Commit

Permalink
fully qualify symbols in context macros - #75
Browse files Browse the repository at this point in the history
  • Loading branch information
retrogradeorbit committed Jun 6, 2020
1 parent 805c159 commit a7105f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clj/spire/context.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

(defn binding-sym []
(if (= :sci @context)
'binding
'clojure.core/binding
'sci.core/binding))

(defmacro binding* [binding-pairs & body]
Expand All @@ -16,8 +16,8 @@

(defn deref-sym []
(if (= :sci @context)
'identity
'deref))
'clojure.core/identity
'clojure.core/deref))

(defmacro deref* [& body]
(concat [(deref-sym)] body))

0 comments on commit a7105f7

Please sign in to comment.