Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Major
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:HideMac OS X 10.9.4
Leiningen 2.4.3 on Java 1.8.0_11 Java HotSpot(TM) 64-Bit Server VM
Deps:
[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2311"]
[org.clojure/core.async "0.1.338.0-5c5012-alpha"]
[org.clojure/core.match "0.2.1"]
Plugins:
[lein-cljsbuild "1.0.4-SNAPSHOT"]]
ShowMac OS X 10.9.4 Leiningen 2.4.3 on Java 1.8.0_11 Java HotSpot(TM) 64-Bit Server VM Deps: [org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2311"] [org.clojure/core.async "0.1.338.0-5c5012-alpha"] [org.clojure/core.match "0.2.1"] Plugins: [lein-cljsbuild "1.0.4-SNAPSHOT"]]
Description
;; Tested in ClojureScript only, #clojure on freenode reports things works in Clojure.
;; This works, {:bye ...} is the first thing inside match's match list:
(go (println
(match {:bye ["cruel" "world"]}
{:bye [a b]} (str "Goodbye " a " " b)
{:hello [a b]} (str "How are you doing " n "?"))))
;; This works (no go block), {:bye ..} is second:
(println
(match {:bye ["cruel" "world"]}
{:hello [a b]} (str "How are you doing " n "?")
{:bye [a b]} (str "Goodbye " a " " b)))
;; This doesn't: Uncaught Error: :clojure.core.match/not-found is not ISeqable
;; indicating that (match ...) is probably returning not-found.
(go (println
(match {:bye ["cruel" "world"]}
{:hello [a b]} (str "How are you doing " n "?")
{:bye [a b]} (str "Goodbye " a " " b))))