"deed" <[email protected]> wrote in message news:[email protected]... > Modifications: > > 1. Swap type and name. Like Go, but return type between function name and > parameter list. > 2. Names come first, all other annotations after. ALWAYS. Example: > > private const(int)[] foo(const(int)[] all, int newNum, int sum) {} > > becomes > > foo const(int)[](all const(int)[], newNum int, sum int) private {}
Why have a function declaration take a different form than an expression? h = sqrt(x*x+y*y) s = sin(theta) There's thousands of years of math behind that, we are taught that form before we ever get near programming a computer. result = do_somthing_with(parameters)
