Skip to content

Comment on First C# 7 Design Meeting Notesparent

Comments

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.

Also, the type is simpler to represent. Instead of Tuple<int, string> you just have something like (Int, String).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.