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

Restrict "private" for items in namespaces to mean "private to the namespace declaration group" #43 #389

Open
cloudRoutine opened this issue Oct 12, 2016 · 0 comments
Labels

Comments

@cloudRoutine
Copy link
Owner

Idea 6987069: Restrict "private" for items in namespaces to mean "private to the namespace declaration group" #43

Status : planned
Submitted by Don Syme on 1/20/2015 12:00:00 AM
4 votes

For F# 2.x-4.0, as discussed in thie GitHub thread (dotnet/fsharp#43 (comment)), a "private" module or type in a namespace is actually accessible from anywhere in that assembly contributing to the same namespace.
The suggestion is to emit a warning when such an item is accessed from outside the immediate namespace declaration group in which it is declared. For example, we would give a warning if it is accessed from another file in the same namespace in the same assembly.

Response

** by fslang-admin on 7/17/2015 12:00:00 AM **

This problem should be fixed via a warning.
This is approved for inclusion in a future release of the F# language subject to an implementation and detailed design.
Don Syme, F# Language and Core Library Evolution.
Archived Uservoice Comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant