Err on unused arguments
Open
- Dominant language
- Rust
- Stars
- 145
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
The `Callable::match_args()` (https://github.com/dgkf/R/blob/79d788a6ad4a852a0c2e73830b710e5bf85913fe/src/callable/core.rs#L39-L104) function always puts unmatched arguments into the ellipsis. But there are functions where no such arguments exist and they should not be matched.
E.g.
```r
f = fn(x) x
f(x = 1, 2)
```
should throw an error because the second argument `2` is unused.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.