3 ms·
Plain `pub` was concise and local and simple. :<
by ben0x539 8y ago
Plain `pub` was concise and local and simple. :<
- steveklabnik 8y agoYou can do that too! pub isn’t going away.
- epage 8y agoI think I saw something about a lint for bare `pub` that isn't visible to the user. I think one of the intents is to make it easier to audit for what is publicly exposed and what isn't. Found it: https://github.com/rust-lang/rust/issues/45521 https://github.com/rust-lang/rust/issues/45521
- ben0x539 8y agoYeah, that's gonna be seriously annoying. :/
- Rusky 8y agoPlain `pub` actually isn't quite local, and that's part of the confusion that `crate` is intended to address. There's also the confusion of looking at a `pub` declaration and not knowing whether or not it's visible to the parent module or visible to the world- at which point maybe you don't want a purely local visibility mechanism.
- ben0x539 8y agoNah it's extremely local, that's why everybody is mad at it