4 ms·
What exactly do you mean by "Tuple Construction/Deconstruction", honest question ? What's the problem with : var t = new Tuple<int, int>(1, 2); I apologiz
by n1ghtmare_ 13y ago
What exactly do you mean by "Tuple Construction/Deconstruction", honest question ? What's the problem with :
var t = new Tuple<int, int>(1, 2);
I apologize if I misunderstood you.
- alkonaut 13y agoLike in languages like python or most functional languages where you can deconstruct a returned tuple. Imagine a function that returns a point tuple. Instead of this: var p = SomeFunc(); print("X value is "+p.X); You would do this (x, y) = SomeFunc(); print("X value is "+x);
- n1ghtmare_ 13y agoAh, I see ! That's pretty awesome. You know Mads Torgersen recently gave a talk on "The Future of C#" in NDC London, he actually mentioned that they're thinking of something like that, I highly recommend you check it out.