Negation of attributes (DIP 79)

Namespace via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 2 07:34:10 PDT 2015


On Tuesday, 2 June 2015 at 13:39:54 UTC, ketmar wrote:
> On Tue, 02 Jun 2015 13:16:49 +0000, Namespace wrote:
>
>> On Tuesday, 2 June 2015 at 12:21:23 UTC, ketmar wrote:
>>> On Tue, 02 Jun 2015 11:50:15 +0000, Namespace wrote:
>>>
>>>> For me it looks ugly. But I would prefer final(false) 
>>>> instead of
>>>> !final.
>>>
>>> this opens a can of worms. should this be accepted too:
>>>   enum doItFinal = false;
>>>   final(doItFinal)
>>> ?
>>>
>>> or even
>>>   final(someFunnyTemplate!(with_, args, 
>>> andOtherTemplate!"too"))
>>> ?
>> 
>> Yes, please.
>
> no, please. that's terrible, that's unpredictable, that's 
> undebugable,
> that's slow. "we can make it dynamic" is not a good reason to 
> actually
> make something dynamic.

So you dislike noexcept(condition) from C++? I like it. But no 
matter which syntax comes, important is that we get something to 
revert attributes. :)


More information about the Digitalmars-d mailing list