Re:Unpacking Tuples in C++14
by platform on Sunday February 28, 2016 @11:51PM
(#11193648)
for a moment I thought that this would allow in C++ to create a 'python dictionary' like data structure for a run-time provided array of JSON objects (as an example), whose schema was known at compile time.
Without pattern matching - ie structural decomposition - this is prohibitively unreadable and negates any benefits of better code reuse.
However tuples, do not appear to enable that.