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

Alexey T. via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 19 12:51:02 PST 2015


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).


More information about the Digitalmars-d mailing list