debug a reserved keyword (even for enums?)

Kapendev alexandroskapretsos at gmail.com
Sun Apr 12 12:04:18 UTC 2026


On Sunday, 12 April 2026 at 11:03:59 UTC, Timon Gehr wrote:
> On 4/12/26 01:27, Kapendev wrote:
>>>
>>> debug_, version_, align_, function_, immutable_... at what 
>>> point do we acknowledge that the cure (universal keyword 
>>> reservation) is worse than the disease (contextual parsing 
>>> complexity)?
>>>
>>> Editions exist precisely to make breaking improvements like 
>>> this possible without fragmenting the ecosystem.
>>>
>>> Let's do it.
>> 
>> Breaking things just to be able to use `align` or `debug` as a 
>> variable or enum name is not worth it. The solution: find 
>> better names.
>
> I don't understand the premise. Why would that break anything?
>
> Jonathan's original point was that contextual keywords are 
> _undesirable_, not that they are _breaking_.
>
> I.e., the contention is with "improvement", not "breaking".

I mentioned earlier that I can't comment about contextual 
keywords because I have no idea. If that works and it's easy to 
implement in D, then it's fine. My comment is about other ideas 
in general.


More information about the Digitalmars-d mailing list