Clojure

*default-data-reader-fn* should be set!-able in REPL

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: Release 1.5
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
    None
  • 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.

Activity

Hide
Steve Miner added a comment - - edited

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

Show
Steve Miner added a comment - - edited Add *default-data-reader-fn* to the special bindings in main.clj so that it is set!-able in the REPL
Steve Miner made changes -
Field Original Value New Value
Attachment CLJ-1101-make-default-data-reader-fn-set-able-in-REPL.patch [ 11659 ]
Steve Miner made changes -
Patch Code [ 10001 ]
Hide
Steve Miner added a comment -

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.

Show
Steve Miner added a comment - 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.
Hide
Steve Miner added a comment -

work-around for REPL:

(alter-var-root #'clojure.core/*default-data-reader-fn* (constantly my-default-reader))
Show
Steve Miner added a comment - work-around for REPL:
(alter-var-root #'clojure.core/*default-data-reader-fn* (constantly my-default-reader))
Stuart Halloway made changes -
Approval Triaged [ 10120 ]
Rich Hickey made changes -
Approval Triaged [ 10120 ] Vetted [ 10003 ]
Rich Hickey made changes -
Fix Version/s Release 1.6 [ 10157 ]
Stuart Halloway made changes -
Approval Vetted [ 10003 ] Screened [ 10004 ]
Rich Hickey made changes -
Issue Type Defect [ 1 ] Enhancement [ 4 ]
Rich Hickey made changes -
Approval Screened [ 10004 ] Ok [ 10007 ]
Stuart Halloway made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: