On Wednesday, 16 April 2014 at 17:22:02 UTC, Gary Willoughby
wrote:
On Tuesday, 15 April 2014 at 21:41:37 UTC, Brad Anderson wrote:
Yes, please. Too few of the attributes have inverse attributes.
Being able to stick your defaults up at the top of your module
and then overriding them only when needed would be very nice
and make the code a lot more tidy.
I actually think this will make code harder to read. e.g.:
@nogc:
void foo()
{
...
}
void bar() @gc
{
...
}
@gc
{
void baz() @nogc
{
...
}
}
@gc:
void quxx() @nogc
{
...
}
Ewww... nasty stuff.
My point was opposite attributes complicate the code hugely.