[Issue 20228] New: simple toString for Tuple!()s

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 19 06:49:09 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20228

          Issue ID: 20228
           Summary: simple toString for Tuple!()s
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: black80 at bk.ru

Tuple!() prints like 
> Tuple!(type, name, type, name, type, name)( val, val, val )
too many spam for it. 
not types printing for structs by default, so why it need here?

better solution:
for named values to print with names, for unnamed - just value
> (name1=val, name2=val, val)
or simpler
> (val, val, val)
cuz for structs (by default) no names too

--


More information about the Digitalmars-d-bugs mailing list