-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Guide does not explain the namespaced enums #19556
Comments
That being said, mentioning that enums are namespaced would be a good idea, so I'm going to leave this ticket open as a TODO to add that. |
(I actually thought I already had such a TODO issue, but cannot find it.) |
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Dec 7, 2014
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Dec 9, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have lots of the legacy of non-namespaced enums throughout the guide:
Ordering::{Less, Equal, Greater}
instead of{Less, Equal, Greater}
(cf. The enum type in Guide is not working #17967, Update guide to reflect changes to enums. #19551).StringResult::{StringOK, ErrorReason}
, which probably should be renamed.OptionalFloat64::{Valuef64, Missingf64}
, which probably should be renamed.Option<T>
, but doesn't mention that its variants are reexported by default. (In fact, the guide doesn't mention that variants can be reexported at all.)The text was updated successfully, but these errors were encountered: