Hacker News new | ask | show | jobs
by spo81rty 4669 days ago
You can make methods easily return multiple values in C# with Tuples. They are very handy.
2 comments

For extremely low values of "easily". C#'s lack of pattern matching and tuple syntax makes dealing with tuples in C# a complete pain in the ass. It's ugly, annoying, code, in general.

P.S. You can do this in pretty much any language. Just define pair, triplet, etc.

For the sake of the sanity of your future co-workers, I really hope you are kidding.