Compact Printing of Tuples
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Dec 14 11:19:23 PST 2014
Nordlöw:
> Why arent' Tuples defaultly printed as
>
> (1, 2)
>
> instead
>
> Tuple!(int, int)(1, 2)
>
> ?
>
> What's the most convenient of tweak this behaviour so I get
> untyped-printing. Is there a function to convert a Tuple to
> into a D parameter tuple?
I'd like a shorter representation of tuples expecially when you
have an array of them. A single tuple is acceptable to print it
in the longer current form.
You can open an enhancement request.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list