News for hackers. Stuff that matters.
Re:Named tuple for C++ by bpicolo on Saturday January 02, 2016 @03:54PM (#10827896)
Lightweight, low-overhead to use, iterable, self-documenting object
Re:Named tuple for C++ by temac on Saturday January 02, 2016 @07:26PM (#10828791)
Given the implementation, there is nothing lightweight and low-overhead to use at build time, and at runtime how exactly is this lighter than a struct? As for self-documenting, I don't even know what it would mean here.

Remains "iterable". Given how modern compiler works, I'm still convinced you should convert plain tuples back and to a struct for source code simplicity and build time speed -- because it won't even do extra copies in most cases (and even if it does, who cares?)