<< Back to previous view

[CLJ-1101] *default-data-reader-fn* should be set!-able in REPL Created: 03/Nov/12  Updated: 24/May/13  Resolved: 24/May/13

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.5
Fix Version/s: Release 1.6

Type: Enhancement Priority: Minor
Reporter: Steve Miner Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File CLJ-1101-make-default-data-reader-fn-set-able-in-REPL.patch    
Patch: Code
Approval: Ok

 Description   

In CLJ-927, Nicola Mometto pointed out that *default-data-reader-fn* should be set!-able. The fix needs to be added to clojure.main/with-bindings.



 Comments   
Comment by Steve Miner [ 03/Nov/12 9:32 AM ]

Add *default-data-reader-fn* to the special bindings in main.clj so that it is set!-able in the REPL

Comment by Steve Miner [ 03/Dec/12 10:07 AM ]

This is a one-liner that makes *default-data-reader-fn* convenient to use in the REPL, similar to how *data-readers* works. I'd like to have this fix in Clojure 1.5.

Comment by Steve Miner [ 12/Mar/13 8:10 PM ]

work-around for REPL:

(alter-var-root #'clojure.core/*default-data-reader-fn* (constantly my-default-reader))
Generated at Wed Sep 03 00:05:44 CDT 2014 using JIRA 4.4#649-r158309.