Paging Walter Bright: Contextual Keywords

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 7 05:24:20 PST 2016


On 07.11.2016 12:38, Dicebot wrote:
> On 11/07/2016 08:40 AM, Stefan Koch wrote:
>>> 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.
>
> It is matter of how smooth deprecation phase is. Completely removal of
> `body` is OK long-term but that would mean one have to wait several
> years of deprecation phase before it can be used as identifier in user
> code. Making it deprecated _and_ contextual results in immediate
> availability.
>

What's the new syntax for contracts if body is removed?


More information about the Digitalmars-d mailing list