Jacob Carlborg:

What do you think about my suggestion for anonymous structs as named parameters?

You show code like:

void foo ({ int x, int y } point)
{
}

foo({ y: 5, x: 3 });


D already has two kinds of tuples so I don't want a "third kind" of tuple. What I want is D to manage better the Phobos Tuple we already have, adding an unpacking syntax (http://forum.dlang.org/thread/[email protected] ). (This is not supposed to solve the named arguments problem).

Bye,
bearophile

Reply via email to