Paging Walter Bright: Contextual Keywords
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 6 22:40:25 PST 2016
On Monday, 7 November 2016 at 04:32:52 UTC, deadalnix wrote:
> On Monday, 7 November 2016 at 03:33:47 UTC, Meta wrote:
>> Hello Walter,
>>
>> I'm currently working on a DIP on the topic of either removing
>> or replacing the `body` keyword in D's contract programming
>> syntax. I've found that the best possible way to do this,
>> without any breaking changes to user code, would be to turn
>> `body` into a contextual keyword. I know that you've expressed
>> your opposition to contextual keywords in the past, but it's
>> hard to find any concrete (and more important, recent) posts
>> stating it clearly (as well as your reasons), other than this
>> one: http://forum.dlang.org/post/npsp8a$mv4$1@digitalmars.com
>>
>
> Why not make it a plain identifier ? We give identifier special
> meaning in various places, like scope(exit).
If I am not mistaken we do not need body ay at all.
More information about the Digitalmars-d
mailing list