Tuple Literals for parameter defaults #1976
Replies: 3 comments
-
Would that necessarily be true? C# doesn't support DateTime defaults, for example. How would this be encoded? Multiple attributes? What would their values be? What about types that VB.NET allows to be defaulted but C# does not, like |
Beta Was this translation helpful? Give feedback.
-
@HaloFour C# gives no special meaning to the type |
Beta Was this translation helpful? Give feedback.
-
Definitely. And I'm not arguing against doing that. I'm still curious about implementation ideas and what will happen when VB.NET declares a method with an optional/default tuple parameter with Dates. 😉 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This issue came up in VBLang. It seems like an interesting idea, so I wanted it to appear here as well (since we'd do it both languages, if we did it).
Beta Was this translation helpful? Give feedback.
All reactions