From a34b02006527d28db5df5c6553be804770b81f79 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 9 Apr 2014 23:58:27 -0500 Subject: Fix metadata on functions. - Don't use metadata to store ast, env, params data. - In Clojure, store metadata on the :meta key of the real metadata. This also allows using any datatype as metadata. --- clojure/src/step3_env.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clojure/src/step3_env.clj') diff --git a/clojure/src/step3_env.clj b/clojure/src/step3_env.clj index 449bf79..7358b49 100644 --- a/clojure/src/step3_env.clj +++ b/clojure/src/step3_env.clj @@ -55,7 +55,7 @@ (def repl-env (env/env)) (defn rep [strng] - (PRINT (EVAL (READ strng), repl-env))) + (PRINT (EVAL (READ strng) repl-env))) (defn _ref [k,v] (env/env-set repl-env k v)) (_ref '+ +) -- cgit v1.2.3