debug a reserved keyword (even for enums?)

An Pham home at home.com
Sun Apr 12 23:12:23 UTC 2026


On Sunday, 12 April 2026 at 19:55:13 UTC, Walter Bright wrote:
> What you're suggesting is that `debug` be a context sensitive 
> keyword.
>
> D has some context sensitive keywords, such as:
>
> ```
D should convert some keywords into attribute instead. "debug" is 
one of them.
1. It is rarely used
2. It is attribute to a function or scope block

@debug .... ;
@debug {}

So, D should reduce keywords usage. Time to re-evaluate the list 
to make D less friction

Cheers


More information about the Digitalmars-d mailing list