<< Back to previous view

[TRDR-7] Anonymous variadic fn arg not read properly Created: 12/Aug/13  Updated: 14/Aug/13  Resolved: 14/Aug/13

Status: Closed
Project: tools.reader
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Chas Emerick Assignee: Nicola Mometto
Resolution: Completed Votes: 0
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.



 Comments   
Comment by Nicola Mometto [ 14/Aug/13 9:44 AM ]

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

I'm releasing 0.7.6 ASAP

Generated at Tue Jul 29 03:47:43 CDT 2014 using JIRA 4.4#649-r158309.