Why use tuples instead of objects?
First of all, a tuple is quick and easy: instead of writing a class for every time you want to put 2 things together, there’s a template that does it for you. Second of all, they’re generic. For example, in C++ the std::map uses an std::pair of key and value. Thus ANY pair can be … Read more