clojure-dev

souenzzo 2022-09-28T13:04:57.815999Z

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) 2022-09-28T13:13:03.372639Z

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

Alex Miller (Clojure team) 2022-09-28T13:13:59.006289Z

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

Alex Miller (Clojure team) 2022-09-28T13:14:10.219419Z

Do you see same in the repl?

souenzzo 2022-09-28T13:25:03.855499Z

REPL results in ask ๐Ÿ™‚ https://ask.clojure.org/index.php/12256/improve-syntax-errors-on-tagged-literals

๐Ÿ‘ 1