-
Notifications
You must be signed in to change notification settings - Fork 362
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
Function visibility #1203
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Abstract
Adding a function visibility feature would allow users to set a function to be private and local to the defining module.
Motivation
As all functions are exportable and public by default, it is possible to import functions that are not meant to be used directly (for various reasons eg. a function could have assumptions that are unknown to the user). This has happened before with some stdlib functions.
Specification
We could also use some other term like
local
because in our caseprivate
has a specific meaning, which might cause confusion.Backwards Compatibility
Depending on the implementation, should be compatible as long as the functions stay public by default.
The text was updated successfully, but these errors were encountered: