Codebase list clojure / 4c5a45b
Update upstream source from tag 'upstream/1.10.3' Update to upstream version '1.10.3' with Debian dir 18702df1d23b555aebfbf2daa6adf5e76231e08f Elana Hashman 1 year, 11 months ago
4 changed file(s) with 16 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
00 <!-- -*- mode: markdown ; mode: visual-line ; coding: utf-8 -*- -->
1
2 # Changes to Clojure in Version 1.10.3
3
4 ## 1 Changes reverted
5
6 * [CLJ-2564](https://clojure.atlassian.net/browse/CLJ-2564)
7 Improve error message for case
8
9 ## 2 Fixes
10
11 * [CLJ-2453](https://clojure.atlassian.net/browse/CLJ-2453)
12 Enable reader conditionals in Clojure prepl
113
214 # Changes to Clojure in Version 1.10.2
315
44 <artifactId>clojure</artifactId>
55 <name>clojure</name>
66 <packaging>jar</packaging>
7 <version>1.10.2</version>
7 <version>1.10.3</version>
88
99 <url>http://clojure.org/</url>
1010 <description>Clojure core environment and runtime library.</description>
2929 <connection>scm:git:git@github.com:clojure/clojure.git</connection>
3030 <developerConnection>scm:git:git@github.com:clojure/clojure.git</developerConnection>
3131 <url>git@github.com:clojure/clojure.git</url>
32 <tag>clojure-1.10.2</tag>
32 <tag>clojure-1.10.3</tag>
3333 </scm>
3434
3535 <properties>
225225 (add-tap tapfn)
226226 (loop []
227227 (when (try
228 (let [[form s] (read+string in-reader false EOF)]
228 (let [[form s] (read+string {:eof EOF :read-cond :allow} in-reader)]
229229 (try
230230 (when-not (identical? form EOF)
231231 (let [start (System/nanoTime)
66946694 (into1 #{} (map #(shift-mask shift mask %) skip-check)))]
66956695 [shift mask case-map switch-type skip-check]))))
66966696
6697 (defn case-fallthrough-err-impl
6698 [val]
6699 (IllegalArgumentException. (str "No matching clause: " (pr-str val))))
67006697
67016698 (defmacro case
67026699 "Takes an expression, and a set of clauses.
67276724 (let [ge (with-meta (gensym) {:tag Object})
67286725 default (if (odd? (count clauses))
67296726 (last clauses)
6730 `(throw (case-fallthrough-err-impl ~ge)))]
6727 `(throw (IllegalArgumentException. (str "No matching clause: " ~ge))))]
67316728 (if (> 2 (count clauses))
67326729 `(let [~ge ~e] ~default)
67336730 (let [pairs (partition 2 clauses)