RCF rewriting varadic fns (fn [& xs]) wrong
Open
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 301
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
(def vector' (fn [& xs] (apply vector xs)))
(tests
(vector 1 2 3) := [1 2 3]
(vector' 1 2 3) := [1 2 3])
✅✅
(tests
(vector 1 2 3) := [1 2 3]
(def vector' (fn [& xs] (apply vector xs)))
(vector' 1 2 3) := [1 2 3])
✅
ERROR in () (:)
expected: (hyperfiddle.rcf/= (vector' 1 2 3) [1 2 3])
actual: clojure.lang.ArityException: Wrong number of args (3) passed to: dustin.y2022.missionary-faq/eval8620/vector'--8625
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown Clojure forms, comparing a direct variadic function call with the same definition inside tests. Trace RCF's rewriting of the fn form and verify that a variadic function remains callable with multiple arguments without the reported arity error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100