Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureCLR by
retagged by

ClojureCLR slurp erroneously prints a warning unless encoding is explicitly provided:

$ touch foo

$ clojure -M -e '(slurp "foo")'
""

$ Clojure.Main -e '(slurp "foo")'
WARNING: (slurp f enc) is deprecated, use (slurp f :encoding enc).
""

The cause of this is found in the normalize-slurp-opts function, which differs from the JVM version here.

1 Answer

0 votes
by
selected by
by
Thanks, Alex!
by
Commit for this pushed.  Will be out in the next alpha release, coming soon.
...