3 ms·
Because I don't know what I want until I want it. I do a similar Tuple a couple of times I know I am going to need a container class/struct to avoid rewriting t
by seivan 11y ago
Because I don't know what I want until I want it. I do a similar Tuple a couple of times I know I am going to need a container class/struct to avoid rewriting the same Tuple over and over again and it would also make things clearer as I know got a class/struct for that particular use case.
Now until I know I need one, it's unnecessary to clutter the namespace with yet another container class/struct.
Named Tuple has a few benefits, that's all. Until they don't.