Jump to page: 1 2 3
Thread overview
DIP 1003 (Remove body as a Keyword) Accepted!
Jun 02, 2017
Mike Parker
Jun 03, 2017
Jack Stouffer
Jun 03, 2017
Jonathan M Davis
Jun 04, 2017
Jack Stouffer
Jun 04, 2017
Jonathan M Davis
Jun 03, 2017
MysticZach
Jun 03, 2017
H. S. Teoh
Jun 03, 2017
Ali Çehreli
Jun 04, 2017
Mike Parker
Jun 03, 2017
Walter Bright
Jun 03, 2017
Mike Parker
Jun 03, 2017
ketmar
Jun 03, 2017
Walter Bright
Jun 04, 2017
Mike Parker
Jun 04, 2017
Walter Bright
Jun 04, 2017
MysticZach
Jun 03, 2017
Jonathan M Davis
Jun 03, 2017
Jacob Carlborg
Jun 03, 2017
Jonathan M Davis
Jun 04, 2017
Jacob Carlborg
Jun 04, 2017
Walter Bright
Jun 05, 2017
Olivier FAURE
Jun 07, 2017
Meta
June 02, 2017
Congratulations are in order for Jared Hanson. Walter and Andrei have approved his proposal to remove body as a keyword. I've added a summary of their decision to the end of the DIP for anyone who cares to read it. In short:

* body temporarily becomes a contextual keyword and is deprecated
* do is immediately allowed in its place
* body is removed and do replaces it fully

Congratulations, Jared!

https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md


June 03, 2017
On Friday, 2 June 2017 at 14:17:10 UTC, Mike Parker wrote:
> Congratulations, Jared!
>
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md

Congratulations.

I recommend a longer deprecation cycle than usual for this, as this will break many legacy libraries that don't get maintained often. A period of two years sounds about right.
June 03, 2017
On Friday, 2 June 2017 at 14:17:10 UTC, Mike Parker wrote:
> Congratulations are in order for Jared Hanson. Walter and Andrei have approved his proposal to remove body as a keyword. I've added a summary of their decision to the end of the DIP for anyone who cares to read it. In short:
>
> * body temporarily becomes a contextual keyword and is deprecated
> * do is immediately allowed in its place
> * body is removed and do replaces it fully
>
> Congratulations, Jared!
>
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md

Yes, congratulations are in order. Although those of us who were questioning the need for any keyword at all in `body`s place may be a little disappointed that it has merely been replaced with `do`, I think no one can doubt the main thrust of the DIP, which is that `body` is an incredibly useful identifier, and that having it newly available makes D a better language.

Also, I've been following the forums for several years now, and this is the first DIP that I know of that was not written by the language authors, and yet was still accepted into the language. Correct me if I'm wrong, but that seems like a real landmark!

Also Mike Parker seems to be doing a very good job in his appointed position as DIP manager.

June 02, 2017
On Saturday, June 03, 2017 02:00:13 Jack Stouffer via Digitalmars-d-announce wrote:
> I recommend a longer deprecation cycle than usual for this, as this will break many legacy libraries that don't get maintained often. A period of two years sounds about right.

For Phobos, that _is_ the normal length of the deprecation cycle. For the language itself, I don't think that it's anywhere near as consistent, but I've gotten the impression that deprecations in the language usually stick around for quite awhile, but I haven't exactly tracked it closely, so I don't know.

- Jonathan M Davis

June 02, 2017
On Sat, Jun 03, 2017 at 04:56:40AM +0000, MysticZach via Digitalmars-d-announce wrote: [...]
> Yes, congratulations are in order. Although those of us who were questioning the need for any keyword at all in `body`s place may be a little disappointed that it has merely been replaced with `do`, I think no one can doubt the main thrust of the DIP, which is that `body` is an incredibly useful identifier, and that having it newly available makes D a better language.
[...]

Yes, count me somewhat disappointed at merely changing `body` to `do`. But at least it's better than nothing, and frees as `body` as an identifier instead of a keyword that's only ever used in a single context. And it's marginally shorter to type. :-D


T

-- 
This sentence is false.
June 03, 2017
On 6/2/2017 9:56 PM, MysticZach wrote:
> Also Mike Parker seems to be doing a very good job in his appointed position as DIP manager.

Yes, I am very happy with Mike's contributions on this, as well as on his blog work. We are very fortunate to have Mike with us.

June 03, 2017
On Saturday, 3 June 2017 at 04:56:40 UTC, MysticZach wrote:
> On Friday, 2 June 2017 at 14:17:10 UTC, Mike Parker wrote:
>> Congratulations are in order for Jared Hanson. Walter and Andrei have approved his proposal to remove body as a keyword. I've added a summary of their decision to the end of the DIP for anyone who cares to read it. In short:
>>
>> * body temporarily becomes a contextual keyword and is deprecated
>> * do is immediately allowed in its place
>> * body is removed and do replaces it fully
>>
>> Congratulations, Jared!
>>
>> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md
>
> Yes, congratulations are in order. Although those of us who were questioning the need for any keyword at all in `body`s place may be a little disappointed that it has merely been replaced with `do`, I think no one can doubt the main thrust of the DIP, which is that `body` is an incredibly useful identifier, and that having it newly available makes D a better language.

Personally, making contracts less verbose and more powerful is much higher on my list (I don't remember ever needing to use 'body' as an identifier, but I see why is it important for many domains), so I'm also disappointed that we replaced one keyword with another. At least 'body' will be a contextual keyword, so it won't cause a massive breakage.

> Also, I've been following the forums for several years now, and this is the first DIP that I know of that was not written by the language authors, and yet was still accepted into the language. Correct me if I'm wrong, but that seems like a real landmark!

Yes, it's the first approved DIP after DIP1000, but there are quite a few approved DIPs not coming Walter and Andrei before that: https://wiki.dlang.org/DIPs - DIP2, DIP3, DIP6, DIP9 (it seems it got traction, even though it doesn't say approved) DIP12, DIP18 (it looks like it was the first @nogc proposal) DIP20, DIP37, DIP42, DIP43 (it's partially implemented), and so on.
Actually most language enhancements happened without going through the DIP process. These are that went through bugzilla: https://issues.dlang.org/buglist.cgi?bug_severity=enhancement&bug_status=RESOLVED&component=dmd&list_id=215170&order=bug_id&product=D&query_based_on=&query_format=advanced&resolution=FIXED&version=D2 and many other exist only as pull requests on GitHub - a very incomplete list: https://github.com/dlang/dmd/pulls?utf8=✓&q=is%3Apr%20is%3Aclosed%20enhancement. If you look carefully at the history in bugzilla and github, even though probably most of the enhancements were little, you'll see there many huge changes to the language that should have gone through the DIP process, but have not.

> Also Mike Parker seems to be doing a very good job in his appointed position as DIP manager.

Agreed, I'm optimistic about the DIP process under his lead.

June 03, 2017
On Friday, June 02, 2017 23:44:21 H. S. Teoh via Digitalmars-d-announce wrote:
> On Sat, Jun 03, 2017 at 04:56:40AM +0000, MysticZach via Digitalmars-d-announce wrote: [...]
>
> > Yes, congratulations are in order. Although those of us who were questioning the need for any keyword at all in `body`s place may be a little disappointed that it has merely been replaced with `do`, I think no one can doubt the main thrust of the DIP, which is that `body` is an incredibly useful identifier, and that having it newly available makes D a better language.
>
> [...]
>
> Yes, count me somewhat disappointed at merely changing `body` to `do`. But at least it's better than nothing, and frees as `body` as an identifier instead of a keyword that's only ever used in a single context. And it's marginally shorter to type. :-D

I cared far more about getting rid of the need for a keyword there than freeing up body, so I'm not sure that I care much about this change (particularly since I rarely deal with cases where I'd use body as a variable name), but it's still good that body was freed up.

- Jonathan M Davis

June 03, 2017
Petar Kirov [ZombineDev] wrote:

> Personally, making contracts less verbose and more powerful is much higher on my list (I don't remember ever needing to use 'body' as an identifier, but I see why is it important for many domains)

yeah. i'm really tired to use `flesh` instead of it. and i have bodies literally everywhere: active, sleeping, dead, broken... several of my game engines has more-or-less physics-based simulations, so i need `body`! ;-)
June 03, 2017
On 6/2/17 10:17 AM, Mike Parker wrote:
> Congratulations are in order for Jared Hanson. Walter and Andrei have approved his proposal to remove body as a keyword. I've added a summary of their decision to the end of the DIP for anyone who cares to read it. In short:
> 
> * body temporarily becomes a contextual keyword and is deprecated
> * do is immediately allowed in its place
> * body is removed and do replaces it fully
> 
> Congratulations, Jared!
> 
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md

Congrats to all who worked on this. Next step is to revise the DIP that puts the approved option to the fore and mentions the others only as other options that have been analyzed. This is because we have an "Approved" status but not "Approved Option X". Thanks! -- Andrei
« First   ‹ Prev
1 2 3