Affects Version/s: None
Fix Version/s: None
Patch:Code and Test
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.
And its use:
yield 1 and nil 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 be nil and doesn't have to be this).
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.