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...)