diff options
| author | Joel Martin <github@martintribe.org> | 2015-01-02 23:33:50 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-01-09 16:16:55 -0600 |
| commit | 96f1845afdb816515bba83ad4bb8fee6bc466557 (patch) | |
| tree | 6fd8d7949ba26863d17122160a488db216fd1b81 /clojure | |
| parent | f522319598c701efde91a78b07110d7039a8c906 (diff) | |
| download | mal-96f1845afdb816515bba83ad4bb8fee6bc466557.tar.gz mal-96f1845afdb816515bba83ad4bb8fee6bc466557.zip | |
Misc cleanup. Move *host-language* to stepA.
Diffstat (limited to 'clojure')
| -rw-r--r-- | clojure/src/step9_try.clj | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clojure/src/step9_try.clj b/clojure/src/step9_try.clj index 4990d75..7e18a74 100644 --- a/clojure/src/step9_try.clj +++ b/clojure/src/step9_try.clj @@ -152,7 +152,6 @@ (env/env-set repl-env '*ARGV* ()) ;; core.mal: defined using the language itself -(rep "(def! *host-language* \"clojure\")") (rep "(def! not (fn* [a] (if a false true)))") (rep "(def! load-file (fn* [f] (eval (read-string (str \"(do \" (slurp f) \")\")))))") (rep "(defmacro! cond (fn* (& xs) (if (> (count xs) 0) (list 'if (first xs) (if (> (count xs) 1) (nth xs 1) (throw \"odd number of forms to cond\")) (cons 'cond (rest (rest xs)))))))") @@ -174,5 +173,4 @@ (if args (rep (str "(load-file \"" (first args) "\")")) (do - (rep "(println (str \"Mal [\" *host-language* \"]\"))") (repl-loop)))) |
