"body" keyword is unnecessary

Basile B. b2.temp at gmx.com
Sun Nov 19 21:27:07 UTC 2017


On Sunday, 19 November 2017 at 21:19:58 UTC, Meta wrote:
> On Sunday, 19 November 2017 at 12:54:37 UTC, Basile B. wrote:
>> Good question, it's even not in the changelog:
>>
>> https://www.google.fr/search?domains=dlang.org&dcr=0&biw=1280&bih=635&tbs=qdr%3Ay&ei=H34RWpKDPIzTgAatnqK4DA&q=body+do+site%3Adlang.org%2Fchangelog&oq=body+do+site%3Adlang.org%2Fchangelog&gs_l=psy-ab.3...4014.4428.0.4779.3.3.0.0.0.0.67.190.3.3.0....0...1.1.64.psy-ab..0.0.0....0.AOIgJDEhh_g
>>
>> So maybe it's wort mentioning something like
>>
>> "(formerly body, which is still allowed during ....)", because 
>> there's been a communication problem with that deprecation.
>
> Yes, I just checked and it's nowhere to be found in the 
> changelog. Walter created the PR to implement the `do` syntax 
> but he did not make a corresponding doc change. I'm not sure 
> what to do considering 2.077.0 has already released.

It's probably too late for the changelog but the specs can still 
mention that there was another keyword in the past. New comers 
will encounter body much when they read old code.


More information about the Digitalmars-d mailing list