Flag proposal

bearophile bearophileHUGS at lycos.com
Mon Jun 13 10:19:15 PDT 2011


Andrei:

> If we all get convinced that named parameters are worth it,

I think this is not going to happen because some people (two?) don't want this feature.

I am for it, if it's well implemented. The reordering is one important part of this feature.
An optional sub-feature is a way to deprecate argument names. Thankfully in D there is already the deprecated keyword; a first idea:

void foo(int deprecated(y) x) {}
Or:
void foo(int deprecated{y} x) {}

Bye,
bearophile


More information about the Digitalmars-d mailing list