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 -

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))
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 - - 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

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: