在Clojure(<;<;)中使用字符串插值宏

在Clojure(<;<;)中使用字符串插值宏,clojure,interpolation,string-interpolation,Clojure,Interpolation,String Interpolation,刚从clojure开始。我正在使用并且不明白为什么我导入了也许你需要使用名称空间?这似乎是从1.4版开始对这个()的支持。啊哈。。。这让人困惑,但我现在明白了 (defproject myapp "0.1" :description "Clojure learning sandbox" :main myapp.core :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/core.inc

刚从clojure开始。我正在使用并且不明白为什么我导入了
也许你需要使用名称空间?

这似乎是从1.4版开始对这个()的支持。啊哈。。。这让人困惑,但我现在明白了
(defproject myapp "0.1"
  :description "Clojure learning sandbox"
  :main myapp.core
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [org.clojure/core.incubator "0.1.2" ]])
(ns clojure-shuffle
  (:require [clojure.core.incubator :refer [<<]]))

(defn -main [& args]
  (println (<< "The sum is: ~(reduce + (map read-string args))")))
The sum is: 12
 Exception in thread "main" java.lang.IllegalAccessError: << does not exist