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]
You donโt need anything special there - just an instrumented spec on the data reader fn
If you could drop the first on an ask question Iโll take a look later
Do you see same in the repl?
REPL results in ask ๐ https://ask.clojure.org/index.php/12256/improve-syntax-errors-on-tagged-literals