Skip to content

Commit 71b903c

Browse files
author
Stuart Halloway
committed
update changes file to include edn and reader changes
1 parent 5c2b5e2 commit 71b903c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

changes.md

+14
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
2.9 clojure.string/replace and replace-first handle special characters more predictably
2222
2.10 Set and map constructor functions allow duplicates
2323
2.11 More functions preserve metadata
24+
2.12 New edn reader, improvements to *read-eval*
2425
3 Performance Enhancements
2526
4 Improved error messages
2627
5 Improved documentation strings
@@ -324,6 +325,19 @@ Now the functions `into`, `select-keys`, `clojure.set/project`, and
324325
`clojure.set/rename` return collections with the same metadata as
325326
their input collections.
326327

328+
### 2.12 New edn reader, improvements to *real-eval*
329+
330+
The new clojure.edn namespace reads edn (http://edn-format.org) data,
331+
and should be used for reading data from untrusted sources.
332+
333+
Clojure's core read* functions can evaluate code, and should not be
334+
used to read data from untrusted sources. As of 1.5, *read-eval*
335+
supports a documented set of thread-local bindings, see the doc string
336+
for details.
337+
338+
*read-eval*'s default can be set to false by setting a system property:
339+
340+
-Dclojure.read.eval=false
327341

328342
## 3 Performance Enhancements
329343

0 commit comments

Comments
 (0)