Thanks. This is strange, that (very ancient) issue exactly describes what I'm seeing in ClojureScript - but I'm reading some EDN that is definitely OK in Clojure 1.8. It also fails with if you add boolean false, btw.
Malcolm Sparks Director Email: [email protected] Web: https://juxt.pro JUXT LTD. Software Consulting, Delivery, Training On 6 January 2017 at 18:17, Nicola Mometto <[email protected]> wrote: > http://dev.clojure.org/jira/browse/CLJ-1138 > > > On 06/01/17 18:10, Malcolm Sparks wrote: > >> ClojureScript version: 1.9.293 >> Lumo version: 1.0.0 >> >> I'm reading with cljs.reader/read-string. >> >> (cljs.reader/register-tag-parser! "custom" identity) >> (cljs.read-string "{:a #custom \"foo\"}") >> >> works fine, but if the value is 'nil'... >> >> (cljs.reader/register-tag-parser! "custom" identity) >> (cljs.read-string "{:a #custom nil}") >> >> it gives the following (strange) error >> >> Error: No dispatch macro for c >> at >> Function.cljs.reader.reader_error.cljs$core$IFn$_invoke$arity$variadic >> (<embedded>:2200:350) >> at cljs.reader.read_dispatch (<embedded>:2214:60) >> at Object.cljs.reader.read_delimited_list (<embedded>:2212:6) >> at cljs.reader.read_map (<embedded>:2216:54) >> at Object.cljs.reader.read (<embedded>:2233:72) >> at cljs.reader.read_string (<embedded>:2233:368) >> at mach$core$act (evalmachine.<anonymous>:406:77) >> at tryToString (fs.js:425:3) >> at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:412:12) >> >> >> where c in this case is the first letter of the tag literal. >> >> I'm trying to get to the bottom of why, but was wondering if anyone on >> the list had any insights. >> >> > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
