Naming arguments in Fn traits
Open
@petrochenkov is already working on this.
Since Nov 12, 2019.
A-function-pointers
A-syntax
T-lang
- Dominant language
- Markdown
- Stars
- 6.6k
- Forks
- 1.7k
- Avg merge
- 16h 14m
- Merged PRs (30d)
- 1
Description
Hi,
Right now If there's a Fn* trait that has 2 parameters of the same type it's really easy to confuse which is which.
i.e.:
type Callback = FnMut(&[u8], &[u8]) -> Point;
If we could name the arguments it would become easier to read and harder to misuse.
type Callback = FnMut(x: &[u8], y: &[u8]) -> Point;
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.
Assessment
This issue has not been assessed yet.