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

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 19 12:58:21 PST 2015


On Mon, 19 Jan 2015 20:51:02 +0000
"Alexey T. via Digitalmars-d" <digitalmars-d at puremagic.com> 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).
maybe it's better to just stick with go/rust then? really, everybody
knows where to download that compilers, yet they comes here and using
D...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150119/92ab176e/attachment.sig>


More information about the Digitalmars-d mailing list