Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: