On 14.05.2017 17:39, Walter Bright wrote:
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.
The drawback is that option 2 is not a good option.