Thread overview
Shouldn't body be deprecated meanwhile?
Dec 21, 2019
berni44
Dec 22, 2019
berni44
Dec 23, 2019
Mathias Lang
December 21, 2019
I just stumbled over [1] and asked myself, what's the current state of DIP 1003? Does anyone know?

[1] https://issues.dlang.org/show_bug.cgi?id=19325
December 21, 2019
On 12/21/19 12:45 PM, berni44 wrote:
> I just stumbled over [1] and asked myself, what's the current state of DIP 1003? Does anyone know?
> 
> [1] https://issues.dlang.org/show_bug.cgi?id=19325

I mean, given that this works:

void main()
{
  int body = 5;
}

I don't know that we need to even deprecate it.

-Steve
December 22, 2019
On 12/21/19 3:28 PM, Steven Schveighoffer wrote:
> On 12/21/19 12:45 PM, berni44 wrote:
>> I just stumbled over [1] and asked myself, what's the current state of DIP 1003? Does anyone know?
>>
>> [1] https://issues.dlang.org/show_bug.cgi?id=19325
> 
> I mean, given that this works:
> 
> void main()
> {
>    int body = 5;
> }
> 
> I don't know that we need to even deprecate it.

Taking a second look at the DIP, it seems that the deprecation is due to the objection of any contextual keywords, which apparently body now is.

So the deprecation should happen. It was supposed to happen when the DIP was implemented.

If you know how to do that, I think it would be accepted.

The deprecation period can be really long, though, as there is probably a lot of code out there that needs updating.

-Steve
December 22, 2019
On Sunday, 22 December 2019 at 18:36:17 UTC, Steven Schveighoffer wrote:
> If you know how to do that, I think it would be accepted.

No, sorry. I don't know how to do that. (I'm mainly familiar with Phobos.)

December 23, 2019
On Saturday, 21 December 2019 at 17:45:41 UTC, berni44 wrote:
> I just stumbled over [1] and asked myself, what's the current state of DIP 1003? Does anyone know?
>
> [1] https://issues.dlang.org/show_bug.cgi?id=19325

Thanks for the reminder, I think we all forgot about it :)
https://github.com/dlang/dmd/pull/10693