in function declarations, what advantages are there to having the type of the parameter specified after the parameter name? For typed languages, what advantages/disadvantages are there to specifying the parameter type after the parameter name?

For languages like C and Java, the type comes first:

void myfunc(TypeA param1, TypeB param2);


For other languages like Scala, Rust, etc, the type comes after the parameter name:

fn myfunc(param1: TypeA, param2: TypeB) {}


What advantages are there to this approach?   I could see in languages where specifying a type is optional (or inferred) and can be left off, but at least for Rust types have to be specified in a function's parameter list.
It's completely arbitrary.

In a given programming language, one would hope that the same convention is used throughout, so either int f(int x) or f(x: int): int but not int f(x: int) or f(int x): int; but even that is arbitrary.