-
Couldn't load subscription status.
- Fork 1.6k
Open
Labels
A-function-pointersProposals relating to function pointers.Proposals relating to function pointers.A-syntaxSyntax related proposals & ideasSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
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;
shirshak55, rgreenblatt, KarelHrkal, evincarofautumn and ClementNerma
Metadata
Metadata
Assignees
Labels
A-function-pointersProposals relating to function pointers.Proposals relating to function pointers.A-syntaxSyntax related proposals & ideasSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.