We're updating the issue view to help you get more done. 

data_readers hard coded to .clj extension, should be extended to .cljc

Description

Currently using data_readers in ClojureScript is difficult because the extensions are not available to both compile time and runtime as they are in Clojure. This is fairly straightforward to remedy now given the presence of conditional reading - simply supply data_readers.cljc.

Approach: Find and read both data_readers.clj and data_readers.cljc. For cljc, allow reader conditionals.

Alternative: Another option would be to just allow reader conditionals on the existing data_readers.clj file. That's a simpler patch but possibly confusing given that conditionals are only available in .cljc files right now.

Patch: clj-1699.patch - tested with a variety of manual tests

Environment

None

Status

Assignee

Unassigned

Reporter

David Nolen

Labels

Approval

Ok

Patch

Code

Fix versions

Affects versions

Release 1.7

Priority

Major