Exception 加载Clojure.core.match

Exception 加载Clojure.core.match,exception,clojure,load,match,Exception,Clojure,Load,Match,我是Clojure新手,我想使用Clojure core.match: 我已使用以下捆绑包使用TextMate设置了我的项目: 我的project.clj如下所示: (defproject Prototype "0.0.1-SNAPSHOT" :description "Prototype ARS Implementation" :dependencies [[clojure "1.3.0"] [org.clojure/core.match "0.2.0-alpha6"]]) 在终端

我是Clojure新手,我想使用Clojure core.match:

我已使用以下捆绑包使用TextMate设置了我的项目:

我的project.clj如下所示:

(defproject Prototype "0.0.1-SNAPSHOT"
  :description "Prototype ARS Implementation"
  :dependencies [[clojure "1.3.0"] [org.clojure/core.match "0.2.0-alpha6"]])
在终端中,我执行:

cake deps
下载了正确版本的Clojure和Clojure.core.match jar文件。 现在我正在编辑我的'src/Prototype/core.clj',我想使用匹配功能

我尝试使用GitHub页面上提供的两个代码:

;; when using HEAD
(use '[clojure.core.match :only [match]])

;; when using the latest released alpha
(use '[clojure.core.match.core :only [match]])
这是我当前的代码:

(ns Prototype.core
  (use '[clojure.core.match.core :only [match]]))

(println
  (let [x [1 2]]
    (match [x]
      [[1 2]] "It worked!"
      :else "It failed!")))
当我将文件加载到cake repl中时;我得到以下错误:

lib names inside prefix lists must not contain periods
有什么想法吗? 干杯

无需在
ns
表格中引用

(我假设
clojure.core.match.core
是正确的名称空间。如果它不起作用,请使用
clojure.core.match

(ns Prototype.core
  (:use [clojure.core.match.core :only [match]]))

(println
  (let [x [1 2]]
    (match [x]
      [[1 2]] "It worked!"
      :else "It failed!")))