by Joker_vD · 4y ago · 0 comments
Those objective criteria of superiority being?..
Consider this C++ code:
Foo bar();
A programmer could make simple mistake thinking that is declaring a variable of type Foo. Carbon eliminates this by having explicit keywords for variable and function declaration. (This style is much more Rust based than C++) fn bar() -> Foo;
var bar : Foo;
It makes parsing easier for both the users and maintainers of the language.If that is Rust's entire syntax advantage, it isn't a very big one.
C++'s most vexing parse issue ceased to be a concern around a decade ago with the introduction of uniform initialization.
Templates