Like Go/Rust, why not to have "func" keyword before function declaration

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 19 13:25:21 PST 2015


On 1/19/15 12:51 PM, Alexey T. wrote:
> Will be much easier to read Source, if func declarataion begins with
> keyword. "def" of "func". e.g.
>
> func myName(params.....): typeOfResult;
> or
> func myName(params...) -> typeOfResult;
>
> easier to read and PARSE. Next D version may allow--with compatability
> of old syntad (C like where typeOfResult is 1st id).

No. -- Andrei


More information about the Digitalmars-d mailing list