`Token.toChar()` (defined in module `dmd.tokens`) differs from various other strings found in the frontend (especially thinking of error messages).
For example: `Token.toChar(TOK.variable)` returns `"var"`, while in several other places the frontend uses the term `variable` instead.
All this should soon or later get unified. I don't think there's a valid reason to keep those inconsistencies.
Comment #1 by robert.schadek — 2024-12-13T19:05:46Z