tools.reader

Anonymous variadic fn arg not read properly

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
  • Patch:
    Code and Test

Description

Compare clojure.core/read-string:

user=> (read-string "#(last %&)")
(fn* [& rest__461#] (last rest__461#))

vs. clojure.tools.reader/read-string:

user=> (reader/read-string "#(last %&)")
(fn* nil (last rest__458#))

The most immediate manifestation of this is that anonymous function forms in ClojureScript >= 0.0-1853 will not compile. I'm filing an issue to track this there as well.

Activity

Hide
Nicola Mometto added a comment -

Sorry for the delay, fixed with https://github.com/clojure/tools.reader/commit/8f48f83a5ad0dbd7f4c8e612c4ab764d418feb93

I'm releasing 0.7.6 ASAP

Show
Nicola Mometto added a comment - Sorry for the delay, fixed with https://github.com/clojure/tools.reader/commit/8f48f83a5ad0dbd7f4c8e612c4ab764d418feb93 I'm releasing 0.7.6 ASAP

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: