News for hackers. Stuff that matters.
Re:Ask HN: Does the use of Tuples in C# lead to poor code ma... by nlawalker on Thursday August 06, 2015 @01:48PM (#10018089)
That C# 6 feature is nice; I had forgotten about that, thanks!

Also, good call on structural equality, I hadn't even considered that and it's really valuable. One thing I've seen people do is create named tuples by inheriting from Tuple, which (I think) works but seems a little silly/ugly.

Re:Ask HN: Does the use of Tuples in C# lead to poor code ma... by WorldMaker on Thursday August 06, 2015 @04:04PM (#10019036)
C# has also supported type aliases for a while:

using MyTuple = Tuple<string, string, string>;

But that's of limited utility (you have to include it in every code file, for instance) and I don't recall the exact circumstances but I recall it being brittle the last time I used it heavily (it was something like the compiler would fail to compile things that should be fine due to it forgetting a type alias half-way through a file), but that was also several compiler versions ago.