debug a reserved keyword (even for enums?)
Timon Gehr
timon.gehr at gmx.ch
Sun Apr 12 11:03:59 UTC 2026
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".
More information about the Digitalmars-d
mailing list