DIP 1003: remove `body` as a keyword
rikki cattermole via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sat Nov 19 17:35:16 PST 2016
On 20/11/2016 10:16 AM, Dicebot wrote:
> DIP 1003 is merged to the queue and open for public informal feedback.
>
> PR: https://github.com/dlang/DIPs/pull/48
> Initial merged document:
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1003.md
>
> If you want the change to be approved and have ideas how to improve it
> to better match on
> https://github.com/dlang/DIPs/blob/master/GUIDELINES.md and existing
> published reviews - please submit new PR with editorial and ping
> original author.
I'm not keen on the replacement syntax but I love the idea.
I was thinking maybe option 3 but not have the body first.
int func(int arg) {
return 8 * arg;
} in {
assert(arg > 0);
} out(int value) {
assert(1);
}
Would break code but its a simple rearrangement.
More information about the Digitalmars-d-announce
mailing list