Rather D1 then D2

Vladimir Panteleev thecybershadow.lists at gmail.com
Sat Sep 22 20:57:08 UTC 2018


On Saturday, 22 September 2018 at 20:53:02 UTC, krzaq wrote:
> C++ added contextual keywords, like `override` and `final`. If 
> this can be done in C++, surely D is easier to parse?

Currently this compiles:

alias safe = int;

@safe foo() { return 1; }
safe bar() { return 2; }

Making "safe" a keyword would cause the second definition to be 
ambiguous.

(Not that there's much incentive to keep this syntax valid...)



More information about the Digitalmars-d mailing list