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

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 20 04:11:45 PST 2015


On Monday, 19 January 2015 at 20:51:03 UTC, 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).

Why reinvent pascal, but worse? Just go with it: 
http://freepascal.org/


More information about the Digitalmars-d mailing list