News for hackers. Stuff that matters.
Re:Named tuple for C++ by seivan on Sunday January 03, 2016 @09:23AM (#10830685)
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.

There are no comments on this comment yet.