Similarly Apply ValueTuple Return Syntactic Sugar To Func Return #1527
Replies: 1 comment
-
IMO the issue with doing this is that delegates are nominally typed and not equivalent based on their signature, so |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The new tuple return syntax (e.g., (string, int) for System.ValueTuple<string, int>) offers a readable and convenient way to use tuples. Extending that syntax to include Func<> offers an equally readable and effective approach. (string=>int) for Func<string, int>, for example.
Beta Was this translation helpful? Give feedback.
All reactions