Default Value for Optional Parameters #8537
Unanswered
TonyValenti
asked this question in
Language Ideas
Replies: 0 comments
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.
-
Given:
There is no way to skip optional parameters unless you do it nominally. ie:
Test(V4: 50);
It would be nice if one of the following syntaxes would mean "Use the default value for the argument as provided by the method signature":
Please note that this is different from using
default
as that means "default for the type". For clarity:Beta Was this translation helpful? Give feedback.
All reactions