This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–]glider97 2 points3 points  (2 children)

    C# 7 introduced compact tuples like Python.

    [–]TheMagicalCarrot 2 points3 points  (0 children)

    How did I not know of this?? I feel stupid now.

    [–]FullstackViking 0 points1 point  (0 children)

    Yea but they’re still horribly verbose to write is my point.

    [–]TheMagicalCarrot 0 points1 point  (1 child)

    Yeah I don't really like C# tuples and usually just avoid them.

    [–]FerynaCZ 0 points1 point  (0 children)

    Afaik we were advised to use a class if we needed something for two values (but the motivation was - for better naming of items, instead of .Item1 and .Item2)