C# 7 Features - Tuples
Cauterite via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 26 10:16:41 PDT 2016
On Thursday, 25 August 2016 at 14:43:35 UTC, Dominikus Dittes
Scherkl wrote:
> But I dislike the named tuple members.
> Why not declare them at the calling site?
>
> (int, int, int, string) fn()
> {
> return (3, 2, 1, "meins");
> }
Because how are you supposed to know what each member of the
tuple represents? If you read the function signature all you see
is "int, int, int, string".
More information about the Digitalmars-d
mailing list