Uploaded image for project: 'tools.reader'
  1. TRDR-7

Anonymous variadic fn arg not read properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • 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.

        Attachments

          Activity

            People

            • Assignee:
              bronsa Nicola Mometto
              Reporter:
              cemerick Chas Emerick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: