You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This has been proposed many times (for C#) and is tracked at dotnet/roslyn#115
Recommend closing this issue and moving the discussion to the roslyn repo.
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: