tools.reader

support deftype/defrecord special reader syntax

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

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

Activity

Hide
Nicola Mometto added a comment -

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

Show
Nicola Mometto added a comment - Unfortunately due to how advanced compilation works, it is just not possible to support this, see CLJS-1560 for more context

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: