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

How much would delegation help? #4

Open
Ixrec opened this issue Jul 7, 2018 · 1 comment
Open

How much would delegation help? #4

Ixrec opened this issue Jul 7, 2018 · 1 comment

Comments

@Ixrec
Copy link
Owner

Ixrec commented Jul 7, 2018

Sometimes, newtypes are tedious to implement. There's a proposal for adding "delegation" to Rust which is expected to help with that.

Current delegation RFC: rust-lang/rfcs#2393

This issue is for gathering feedback on whether or not delegation actually would help solve cases where newtypes are tedious to implement today. In particular, whether certain extensions to the proposal would be required to solve your use case (e.g. delegation of associated types, static methods, etc).

@shepmaster
Copy link

See also Is it considered a bad practice to implement Deref for newtypes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants