Closed Dogwei closed 1 month ago
Closing as a duplicate of multiple other discussions. I would also remind you of the process spelled out in our README: new proposals need to start as discussions, not as issues, until a member of the LDM decides to champion it.
Dear CSharpLang Community,
I would like to propose the allowance of defining single-element tuples when defining types. I have identified two main benefits of this feature:
Semantic clarity in complex type definitions:
Currently, the following code lacks semantic clarity, as we can only see 'key' and 'value'.
Semantic clarity in return values:
Currently, the return value of the following code also lacks semantic clarity.
If this proposal is accepted, I suggest allowing implicit conversion between ValueTuple<T> and T.
Of course, if there are other ways to solve these problems, that would be great as well.
Best regards