this is almost a workaround for the lack of named parameters
bearophile
bearophileHUGS at lycos.com
Thu Mar 21 14:18:06 PDT 2013
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/gridjorxqlpoytuxwpsg@forum.dlang.org
). (This is not supposed to solve the named arguments problem).
Bye,
bearophile
More information about the Digitalmars-d
mailing list