debug a reserved keyword (even for enums?)

Walter Bright newshound2 at digitalmars.com
Mon Apr 13 00:29:51 UTC 2026


On 4/12/2026 4:12 PM, An Pham wrote:
> D should convert some keywords into attribute instead. "debug" is one of them.
> 1. It is rarely used

I use `debug` all the time. BTW, `debug` was there a decade before the @ syntax.

> 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

You can use `Debug` for user-defined things.



More information about the Digitalmars-d mailing list