DIP 1007 - keywords as identifiers with an escape symbol - feedback

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 19 03:32:13 PST 2016


On Monday, 19 December 2016 at 10:24:08 UTC, Basile B. wrote:
> On Monday, 19 December 2016 at 08:30:07 UTC, Stefan Koch wrote:
>> If you are prepending # you might as well prepend _
>
> No, because # is not an identifier char while _ is.
>
> * _delegate is 1 token (_delegate)
> * #delegate is 2 tokens ( # then delegate)
>
> Then you can determine that the intention is to have "delegate" 
> as identifier, while with _ you cant.

issue for the form of the DIP:

"must explain what is an identifier character and what is not".

I'm a bit surprised that the two first comments are related to 
this but anyway, I'll add that # is a symbol and _ an identifier 
char. I must be be biased by the work on CE highlighter.


More information about the Digitalmars-d mailing list