ClojureScript

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

Description

Starting with 0.0-1853 (specifically, 9f010ff), anonymous function literals containing a variadic argument fail to compile, e.g.

#(last %&)

This is due to TRDR-7 AFAICT. Note that the above will work in all known ClojureScript REPLs because they still use clojure.core/read & co.; the failure only occurs via e.g. lein-cljsbuild, cljs.closure/-compile, etc.

Activity

Hide
Nicola Mometto added a comment -

The atteched patch updates tools.reader with the just released 0.7.6 that fixes the problem.

As I just performed the release, it may take a few hours for the new version to hit the maven repository

Show
Nicola Mometto added a comment - The atteched patch updates tools.reader with the just released 0.7.6 that fixes the problem. As I just performed the release, it may take a few hours for the new version to hit the maven repository
Hide
Chas Emerick added a comment -

Thanks, all!

Show
Chas Emerick added a comment - Thanks, all!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: