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

Israel via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 19 16:19:13 PST 2015


On Monday, 19 January 2015 at 21:25:16 UTC, Andrei Alexandrescu
wrote:
> 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

LOL.

That reply...


More information about the Digitalmars-d mailing list