Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexible operator overloading #420

Open
pcwalton opened this issue Oct 27, 2014 · 0 comments
Open

More flexible operator overloading #420

pcwalton opened this issue Oct 27, 2014 · 0 comments
Labels
A-operator Operators related proposals. A-resolve Proposals relating to name resolution. A-typesystem Type system related proposals & ideas postponed RFCs that have been postponed and may be revisited at a later time. T-lang Relevant to the language team, which will review and decide on the RFC.

Comments

@pcwalton
Copy link
Contributor

The current system ties the various operators to a specific trait. This can be limited, as some uses for the operators might not fit that trait. For example, the return type might be different than expected, or the methods might be unsafe.

Postponed RFCs along these lines:

@pcwalton pcwalton added the postponed RFCs that have been postponed and may be revisited at a later time. label Oct 27, 2014
@nikomatsakis nikomatsakis changed the title Ad-hoc operator overloading More flexible operator overloading Apr 10, 2015
@petrochenkov petrochenkov added the T-lang Relevant to the language team, which will review and decide on the RFC. label Jan 29, 2018
@Centril Centril added A-traits Trait system related proposals & ideas A-typesystem Type system related proposals & ideas A-operator Operators related proposals. A-resolve Proposals relating to name resolution. and removed A-traits Trait system related proposals & ideas labels Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-operator Operators related proposals. A-resolve Proposals relating to name resolution. A-typesystem Type system related proposals & ideas postponed RFCs that have been postponed and may be revisited at a later time. T-lang Relevant to the language team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

3 participants