I would be interested using Rust if it weren't for the poorly chosen language syntax. Same goes for Kotlin and Swift. Coming from C/C++ background I don't care for declaring variable names before their types. val/let, fn (instead of say "func" or "function"), etc... I hate implicit types and operations instead of being explicit.
Ugliness is subjective. Rust fn syntax is made for easier symbol search in the sources. It's trivial to find a function by grepping "fn plus_one". And it's much easier to find a function returning something by grepping for "-> xxx".
It's the syntax (Score:5, Insightful)
I would be interested using Rust if it weren't for the poorly chosen language syntax. Same goes for Kotlin and Swift. Coming from C/C++ background I don't care for declaring variable names before their types. val/let, fn (instead of say "func" or "function"), etc... I hate implicit types and operations instead of being explicit.
fn plus_one(x: i32) -> i32 {
x + 1;
}
Ugly as hell compared to
int plus_one(int x) {
return x + 1;
}
it's also far more explicit
Re: (Score:3, Insightful)
Good luck doing in it C.
Re: (Score:2)
Good luck doing in it C.
It's generally done with a search for "function_name(" or "function_name (" depending on your coding convention. Problem solved.
Re: It's the syntax (Score:2)
Re: It's the syntax (Score:2)