Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
stathissideris committed Dec 24, 2012
1 parent 273c6ae commit 7827b71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/defalt.clj
@@ -1,8 +1,8 @@
(ns defalt
(require [clojure.string :as string]))

;; symbol key -> :selected
;; symbol key -> :alternatives -> alternative key -> alternative function
;; ns -> symbol key -> :selected
;; ns -> symbol key -> :alternatives -> alternative key -> alternative function
(def registry (atom {}))

(defn parse-alt-name [alt-name]
Expand Down Expand Up @@ -46,7 +46,7 @@
(defmacro reset [original]
`(switch ~original ::master))

#_(defmacro source [original alternative]
(defmacro source [original alternative]
(:source
(meta
(get-in @registry [original :alternatives alternative]))))
Expand Down

0 comments on commit 7827b71

Please sign in to comment.