3 ms·
1. Not having to declare a pointless wrapper class. 2. Tuples support pattern matching. 3. For simple cases the return type is clearer, no need to dig up anot
by jinst8gmi 11y ago
1. Not having to declare a pointless wrapper class.
2. Tuples support pattern matching.
3. For simple cases the return type is clearer, no need to dig up another class declartion to figure out what the field types are.