4 ms·
The ability to write (2, "hello") instead of Tuple.Create(2, "Hello"). But more importantly, syntax for deconstructing tuples will make tuples convenient for re
by olavk 12y ago
The ability to write (2, "hello") instead of Tuple.Create(2, "Hello"). But more importantly, syntax for deconstructing tuples will make tuples convenient for returning multiple values from a method. Eg.:
(var x, var y) = getPoint();
as shown in the aticle.
- MichaelGG 12y agoAlso, the type is simpler to represent. Instead of Tuple<int, string> you just have something like (Int, String).