The strange name, in any case, in the parameters of the function C is as follows:
void func_name(int a, int b) {
}
However, in Rust:
fn func_name(a: int, b: int) {
}
Is it just a preference in syntax and appeal to the creators of Rust, or is it for a specific purpose that I do not know about? For example, Go has "optional half-columns", but they actually show when the expression ends. Please keep in mind that I'm a complete newbie to Rust, so if you try to provide some bizarre examples in Rust I, you probably won't understand :(
source
share