3 ms·
That would be exactly the thing generics are supposed to fix (except that Go doesn't have tuples yet, but at least you can define your own now and return a gene
by rustc 5y ago
That would be exactly the thing generics are supposed to fix (except that Go doesn't have tuples yet, but at least you can define your own now and return a generic `Tuple[A, B]`).
Regardless of that, returning a tuple of size 10, especially with different types, would almost always be a bad idea.