support deftype/defrecord special reader syntax

Description

In Clojure, we can read a record with a special reader syntax with a piece of code like this:
(read-string "#user.Person{:firstname "Joe", :lastname "Smith", :age 37}")

In Clojurescript, the similar code with cljs.reader doesn't work:
(cljs.reader/read-string "#user.Person{:firstname "Joe", :lastname "Smith", :age 37}")

I causes an error:
No reader function for tag user.Person

Environment

None

Activity

Show:
Nicola Mometto
November 27, 2018, 1:43 AM

Unfortunately due to how advanced compilation works, it is just not possible to support this, see CLJS-1560 for more context

Completed

Assignee

Nicola Mometto

Reporter

Yehonathan Sharvit

Labels

None

Approval

None

Patch

None

Priority

Major