Symbols and keywords with more than one slash like foo/bar/baz can be read by read-string but not in ClojureScript which is based on tools.reader. This changes the roundtrippable? check to read using tools.reader to ensure a symbol will be tagged as a string in case it's not readable, fixing a read exception that could occur when reading in the browser.
This was especially problematic when using cider which overrides the printing of functions so they could be unreadable in the browser:
Symbols and keywords with more than one slash like
foo/bar/baz
can be read byread-string
but not in ClojureScript which is based ontools.reader
. This changes theroundtrippable?
check to read using tools.reader to ensure a symbol will be tagged as a string in case it's not readable, fixing a read exception that could occur when reading in the browser.This was especially problematic when using cider which overrides the printing of functions so they could be unreadable in the browser: