Better named tuple support?

Jethro via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Sun Apr 16 16:43:47 PDT 2017


On Sunday, 16 April 2017 at 21:00:59 UTC, Jethro wrote:
> Debugging tuples is pretty hard to decypher. Instead of using 
> _expand_field, could it be possible to display the names of the 
> fields of they exist?
>
> After all, the type is listed with the names so it should be 
> easy to get them from the type string and just replace the 
> displayed _expand_field with them.

Also, when displaying the value in watches, it would be nice to 
not show the field name, they take up so much room that one can't 
really see much of the tuple, specially with nested values.

{__expand_field_0="A", __expand_field_1={__expand_field_0="B", 
__expand_field_1=0}, ...}

Instead

{"A", {"B", 0}, ...}

It's much more concise and is not confusing at all.




More information about the Digitalmars-d-ide mailing list