Hacker News new | ask | show | jobs
by manigandham 3590 days ago
Every language has something missing, but C# has plenty of other great features so tuples weren't really that big of a problem. There are also plenty of built-in containers like the Tuple class that can offer the same functionality.
2 comments

Exactly. The biggest that comes to my mind is generics which are missing from many languages.
A tuple struct fills nearly zero of the real use cases for language level tuples. No pattern matching makes it sort of useless.
What about returning multiple values from a function without declaring a dedicated type? That is pretty useful.