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

2016-12-22 Thread Chris Wright via Digitalmars-d
On Thu, 22 Dec 2016 10:47:37 +, Basile B. wrote: > no...it's dead, obviously whatever is the amount of #, they'll be > removed when the token is patched for the first time. This just doesn't > work with mixins. End of story. If it's changed to `# identifier` instead of `# keyword`, you can de

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

2016-12-22 Thread Basile B. via Digitalmars-d
On Thursday, 22 December 2016 at 04:11:54 UTC, Chris Wright wrote: While we're talking about this, this proposal breaks any string mixin that mixes in an identifier detected with reflection. http://imgur.com/NHe6k2p

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

2016-12-22 Thread Piotrek via Digitalmars-d
On Thursday, 22 December 2016 at 10:47:37 UTC, Basile B. wrote: End of story. This was worth trying anyway. Especially for the "body" keyword. Personally I don't need it anymore, but it is substantial issue for newcomers wanting to use it badly for web/sci dev. This is probably the most con

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

2016-12-22 Thread Andrei Alexandrescu via Digitalmars-d
On 12/22/2016 05:11 AM, Basile B. wrote: On Thursday, 22 December 2016 at 04:11:54 UTC, Chris Wright wrote: While we're talking about this, this proposal breaks any string mixin that mixes in an identifier detected with reflection. RIP DIP 1007. It was too simple to be true. If that's the ca

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

2016-12-22 Thread Basile B. via Digitalmars-d
On Thursday, 22 December 2016 at 10:35:23 UTC, Basile B. wrote: On Thursday, 22 December 2016 at 10:11:19 UTC, Basile B. wrote: On Thursday, 22 December 2016 at 04:11:54 UTC, Chris Wright wrote: While we're talking about this, this proposal breaks any string mixin that mixes in an identifier de

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

2016-12-22 Thread Basile B. via Digitalmars-d
On Thursday, 22 December 2016 at 10:11:19 UTC, Basile B. wrote: On Thursday, 22 December 2016 at 04:11:54 UTC, Chris Wright wrote: While we're talking about this, this proposal breaks any string mixin that mixes in an identifier detected with reflection. RIP DIP 1007. It was too simple to be

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

2016-12-22 Thread Basile B. via Digitalmars-d
On Thursday, 22 December 2016 at 04:11:54 UTC, Chris Wright wrote: While we're talking about this, this proposal breaks any string mixin that mixes in an identifier detected with reflection. RIP DIP 1007. It was too simple to be true.

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

2016-12-21 Thread Chris Wright via Digitalmars-d
On Mon, 19 Dec 2016 09:58:28 +, default0 wrote: > On Monday, 19 December 2016 at 08:30:07 UTC, Stefan Koch wrote: >> 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

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

2016-12-21 Thread Basile B. via Digitalmars-d
On Monday, 19 December 2016 at 10:28:31 UTC, Basile B. wrote: On Monday, 19 December 2016 at 09:58:28 UTC, default0 wrote: 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. S

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

2016-12-19 Thread Basile B. via Digitalmars-d
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 ( #

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

2016-12-19 Thread Basile B. via Digitalmars-d
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 o

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

2016-12-19 Thread Basile B. via Digitalmars-d
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 a

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

2016-12-19 Thread default0 via Digitalmars-d
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 a

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

2016-12-19 Thread Stefan Koch via Digitalmars-d
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'v

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

2016-12-19 Thread Basile B. via Digitalmars-d
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 approa