Make typecheck and typecheck-args the same order of arguments
- Dominant language
- JavaScript
- Stars
- 507
- Forks
- 45
- Avg merge
- 11h 22m
- Merged PRs (30d)
- 4
Description
typecheck-args is used only in few places, but both functions should have the same API.
Here is example usage:
```scheme
(typecheck "some" fn "function")
(typecheck-args (vector "pair" "nil") "some" lists)
```
typecheck-args is used with curry:
```scheme
(define numbers? (curry typecheck-args "number"))
```
That's why the first argument is type, so you can provide label and argument when calling `numbers?`
typecheck should be modified to have the same API.
Contributor guide
Research direction
Locate the definitions and usages of typecheck and typecheck-args, then compare them with the Scheme examples in the issue. Done means both functions expose the same argument order while the curry-based typecheck-args usage remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100