[Proposal] Improving access modifiers. in/out namespace #9129
Unanswered
jarogor
asked this question in
Language Ideas
Replies: 1 comment
-
See: #8654 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Improving access modifiers, extending them to nemspaces. Using in/out modifiers for namespaces to check the right to inject into it from the top or from it to the top at the compilation stage.
This will allow writing in one project what is currently divided into different projects. This will replace tools like ArchUnitNET and transfer part of the control to compilation and analysis in the IDE.
Example:
in namespace
You can import into it, but not from it:
out namespace
You can import from it, but not into it:
Without specifying in/out, both are allowed and everything works as usual.
Beta Was this translation helpful? Give feedback.
All reactions