-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add support for readonly/const/final function parameters #345
Comments
This has been proposed many times (for C#) and is tracked at dotnet/roslyn#115 |
I knew it couldn't be new, just couldn't find it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In a nutshell, add a feature so that the answer to this SO question is "yes":
http://stackoverflow.com/questions/2339074/can-parameters-be-constant
Probably shouldn't be a breaking change for API writers, since it only needs to be enforced in the locality of the function itself. The purpose would be to make sure parameters aren't written over (i.e. used as temp variables) in the implementation. Purpose is not to provide any guarantees to the caller.
The text was updated successfully, but these errors were encountered: