Arbitrary abbreviations in phobos considered ridiculous
Adam D. Ruppe
destructionator at gmail.com
Fri Mar 9 13:50:22 PST 2012
On Friday, 9 March 2012 at 21:36:28 UTC, Steven Schveighoffer
wrote:
> I can't say I agree with this, as it pollutes the global
> namespace with several common terms that could be used for
> fields.
There's no such thing as a global namespace in D, and
field names wouldn't be affected even if there was one.
int minutes(int i) {
return i;
}
struct A {
int minutes; // not a problem
void foo() {
minutes = .minutes(1); // works
}
}
More information about the Digitalmars-d
mailing list