DIP 1007 - keywords as identifiers with an escape symbol - feedback
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Mon Dec 19 02:28:31 PST 2016
On Monday, 19 December 2016 at 09:58:28 UTC, default0 wrote:
> On Monday, 19 December 2016 at 08:30:07 UTC, Stefan Koch wrote:
>> On Monday, 19 December 2016 at 08:14:44 UTC, Basile B. wrote:
>>> I know that there is other hot stuffs since a few days but
>>> this is a really simple DIP, that has no effect on the
>>> grammar and no effect on the semantic. It was drafted after
>>> the announce of DIP 1003 last week. During a discussion I've
>>> proposed to take a radically different approach. This
>>> approach is DIP 1007.
>>>
>>> The DIP: https://github.com/dlang/DIPs/pull/52
>>> The implementation: https://github.com/dlang/dmd/pull/6324
>>>
>>> p.s: about DIP methodology it's not clearly explained when &
>>> how a manager is introduced, apologies if this topic should
>>> be opened by someone else !
>>
>> If you are prepending # you might as well prepend _
>
> That doesn't solve the complications this introduces if you
> want to serialize to/from members with these names, as seen in
> the Examples section of the DIP.
Yes it does. See my answer to Stefan.
In the code you write #delegate, but the identifier is, as known
by the compiler, just "delegate". See the unit tests that passed
already several times:
https://github.com/dlang/dmd/pull/6324/files#diff-60ac3d231ebb78f79477cc2520a37200R19
More information about the Digitalmars-d
mailing list