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".
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".
Good luck doing in it C.
In actual use cases if I'm looking for a function, I already know something about it. It isn't like I'm walking down the street and I pick up some poorly organized code off the ground and I'm looking for some function.
As a C programmer I can simply promise you that this is not a limitation of any sort.
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:It's the syntax (Score:2)
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".
Good luck doing in it C.
In actual use cases if I'm looking for a function, I already know something about it. It isn't like I'm walking down the street and I pick up some poorly organized code off the ground and I'm looking for some function.
As a C programmer I can simply promise you that this is not a limitation of any sort.