Proposal: parameter contracts #3287
Unanswered
Opiumtm
asked this question in
Language Ideas
Replies: 1 comment
-
I personally would prefer to see an enhanced support for literals for this dotnet/roslyn#263 dotnet/roslyn#2401. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Introduce "interface struct" contract for method and constructor parameters.
this would be translated to
This would overcome some parameter list limitations and ambiguity. Most importantly - it introduce ability to declare non-standard default values logic. It doesn't take struct as parameter and provide parameters as parameter list. Struct is created and initialized from paremeters in method/constructor body instead.
Beta Was this translation helpful? Give feedback.
All reactions