Closed bfontaine closed 4 years ago
This mirrors clojure.edn/read-string’ that returns nil on empty strings, instead of failing on an EOF error.
clojure.edn/read-string
nil
As I understand the edn spec, the input can (should?) be treated as a stream of values rather than only a single value:
A use of edn might be a stream or file containing elements […]. There is no enclosing element at the top level. Thus edn is suitable for streaming and interactive applications.
A use of edn might be a stream or file containing elements […].
There is no enclosing element at the top level. Thus edn is suitable for streaming and interactive applications.
I added one example line in the README.
This mirrors
clojure.edn/read-string
’ that returnsnil
on empty strings, instead of failing on an EOF error.As I understand the edn spec, the input can (should?) be treated as a stream of values rather than only a single value: