2011/1/24 foobar <f...@bar.com>:
> This "problem" happens because D belongs to the C-family of languages which 
> puts the return type _before_ the function name.
>
> Languages that don't follow this syntactic convention (some would call it a 
> mistake) have it very consistent and readable:
> attribute funcName inputParams -> outputParams { body }
> This is the typical functional language design.

It is arguably more consistent to have the return type come first, as
in variable declarations:

int a = 4;
int foo() { return 5; }

Both "foo()" and "a" are now of type int.

Torarin

Reply via email to