Fork me on GitHub
#clojure-dev
<
2022-09-28
>
souenzzo13:09:57

This error message is wrong

clojure -M -e '#uuid id'
Execution error (AssertionError) at clojure.main/main (main.java:40).
Assert failed: (string? form)
It should be something like this
Reader error (AssertionError) at clojure.uuid/default-uuid-reader (uuid.clj:12).
Assert failed: (string? form)
A second step improvement could be add spec support to data-literals, as macros do.
Syntax error reading #uuid id at (REPL:1)
id - failed: string? at: [:form]

Alex Miller (Clojure team)13:09:03

You don’t need anything special there - just an instrumented spec on the data reader fn

Alex Miller (Clojure team)13:09:59

If you could drop the first on an ask question I’ll take a look later

Alex Miller (Clojure team)13:09:10

Do you see same in the repl?