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

visability propigation #12

Open
snowfoxsh opened this issue Feb 14, 2025 · 1 comment
Open

visability propigation #12

snowfoxsh opened this issue Feb 14, 2025 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@snowfoxsh
Copy link
Owner

One common design pattern is for all nested structures to have to same item visibility as the parent. Perhaps a syntax similar to the attribute propagation would be useful and not to far outside the scope of the project.

nest! {
    pub* struct First {
        f: struct Second {
            f: struct Third;
        }
    }
}

would expand to

pub struct First {
    f: Second,
}
pub struct Second {
    f: Third,
}
pub struct Third;

this feature would not cover field viability (#11) but would make another common design pattern easier to write without introducing a new syntax "concept".

@snowfoxsh snowfoxsh added enhancement New feature or request help wanted Extra attention is needed labels Feb 14, 2025
@snowfoxsh
Copy link
Owner Author

snowfoxsh commented Feb 14, 2025

This issue will be the parent issue for tracking visibility related improvements. The individual features should be referenced in their respective issues.

@snowfoxsh snowfoxsh changed the title Item visability propigation visability propigation Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant