accept @pure @nothrow @return attributes

Meta via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 26 11:46:21 PST 2015


On Monday, 26 January 2015 at 19:44:18 UTC, Walter Bright wrote:
> On 1/26/2015 8:13 AM, Foo wrote:
>> You could do the same as C++ with override and final: they are 
>> only valid
>> attributes if they appear _after_ the function/method. 
>> Elsewhere they are still
>> valid as identifiers for e.g. variables.
>
> Just 'no' on context-sensitive tokens.
>
> For context,
>
>   TV vocabulary - 2,000 words
>   High school vocabulary - 10,000 words
>   College vocabulary - 30,000 words
>   English - 1,000,000 words
>
> i.e. words are NOT a scarce resource (quite unlike punctuation).

Some words are in high demand, however, like body and match.


More information about the Digitalmars-d mailing list