We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf6aa3 commit b275055Copy full SHA for b275055
src/clj/clojure/core.clj
@@ -3430,10 +3430,12 @@
3430
vars, namespaces are allowed, as well as static methods and
3431
constructors of derivees of the *read-whitelist*
3432
3433
+ Returns nil when string is nil or empty.
3434
+
3435
See also - safe-read-string"
3436
{:added "1.0"
3437
:static true}
- [s] (clojure.lang.RT/readString s))
3438
+ [^String s] (when (pos? (count s)) (clojure.lang.RT/readString s)))
3439
3440
(defn safe-read-string
3441
"Same as read-string, with *read-eval* bound to false"
0 commit comments