See Unpack named tuples (does anyone know how to do it?) for a previous discussion with a solution that comes with issues.