Skip to content

add #[unstable] or #[experimental] to std::{reflect, repr} #10239

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

Closed
thestinger opened this issue Nov 2, 2013 · 2 comments
Closed

add #[unstable] or #[experimental] to std::{reflect, repr} #10239

thestinger opened this issue Nov 2, 2013 · 2 comments
Milestone

Comments

@thestinger
Copy link
Contributor

Reflection prevents using Rust to write a dynamic library with a stable ABI. There is simply no way to hide implementation details of a type, since priv isn't strictly enforced for reads.

I think we'll end up regarding allowing walking arbitrary types in release builds as a mistake, even if there currently isn't consensus that it's a bad idea. There's no problem with this functionality existing for debugging, but there are certainly drawbacks to having it as a supported general purpose feature.

@nikomatsakis
Copy link
Contributor

I agree that the reflection interface should not be considered stable or final

@pnkfelix
Copy link
Member

pnkfelix commented Nov 7, 2013

Accepted for 1.0. P-backcompat-libs

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

No branches or pull requests

3 participants