DIP 1003 Formal Review

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun May 14 08:39:12 PDT 2017


On 5/12/2017 9:17 AM, Mike Parker wrote:
> The first stage of the formal review for DIP 1003 [1], "Remove body as a
> Keyword", is now underway.

A combination of Options 1 and 2:

1. Introduce 'function' as an alternative to 'body'.
2. Turn 'body' into a contextual keyword.
3. Deprecate 'body' as a contextual keyword.
4. Eventually remove 'body' as a contextual keyword.

The advantages of this are:

1. 'body' can immediately be used as a regular identifier.
2. Existing code is not immediately broken.
3. Can have a decent deprecation period for users using 'body'.
4. No long term problems with contextual keywords.


More information about the Digitalmars-d mailing list