News for hackers. Stuff that matters.
Re:Named tuple for C++ by leni536 on Sunday January 03, 2016 @05:33AM (#10830167)
Yeah, tuples make sense sometimes, that's why they are introduced. I think iterating through a tuple only makes sense if you store in some kind "similar" elements in there (not necessarily same type but same trait class). It could indeed be great for generic programming where your tuple have variadic length (depending on template parameters).

Just don't use it to replace structs, it doesn't make sense.

There are no comments on this comment yet.