Completed
Details
Assignee
David NolenDavid NolenReporter
Mike FikesMike FikesPatch
Code and TestPriority
Major
Details
Details
Assignee
David Nolen
David NolenReporter
Mike Fikes
Mike FikesPatch
Code and Test
Priority

Created June 14, 2017 at 3:15 AM
Updated June 15, 2017 at 10:31 PM
Resolved June 15, 2017 at 10:31 PM
The docstring for
defrecord
indicates "recur calls to the method head should *not* pass the target object", but in ClojureScript an argument in this position is evidently required, resulting in a discrepancy relative to Clojure.Example code:
And its use:
yield
1
andnil
respectively in Clojure.If you attempt to compile the
Search
defrecord
in ClojureScript, you will get "recur argument count mismatch at line 7".It appears that this can be fixed in the example code by simply adding a dummy value for the first argument to
recur
(it can even benil
and doesn't have to bethis
).This ticket requests that this be fixed to match Clojure. Since this would be a breaking change, perhaps legacy code could be accepted while simultaneously emitting a warning diagnostic.