-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
questionNo questions on the issue tracker, please.No questions on the issue tracker, please.
Milestone
Description
Eg. these
struct {
pub x: i32
pub fn f() {}
pub const v: i32 = 0;
}
which seem to do nothing (you can call private methods from anywhere AFAICT). Basically, I wanted to know if these are just unimplemented and what they're supposed to do.
- The stated grammar doesn't actually allow visibility modifiers on container members at all. Most of the docs use
pubon struct methods though and the parser allows them in all the places above. - If they were working, what's the intended unit of visibility? (I mean, where would you be allowed to access private members from?) The container, like in C++, or the file, like in Rust?
- The
exportmodifier in particular seems pretty meaningless on fields.
Metadata
Metadata
Assignees
Labels
questionNo questions on the issue tracker, please.No questions on the issue tracker, please.