4 ms·
D is closer to this than this rust rip-off
by donkarma 4y ago
D is closer to this than this rust rip-off
- zamalek 4y agoLike every braces language following C is a C rip-off? Rusty syntax is objectively superior to almost everything else we've come up with, there's no reason it shouldn't be copied.
- Joker_vD 4y ago> is objectively superior Those objective criteria of superiority being?..
- vazgriz 4y agoIt eliminates the Most Vexing Parse. 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.
- compiler-guy 4y agoThere are literally thousands of shipping languages that don't have the most vexing parse problem. If that is Rust's entire syntax advantage, it isn't a very big one.
- Joker_vD 4y agoIf that's the only criterion then Pascal's syntax, which doesn't have "the most vexing parse" problem either, and for the same reason, is also almost better than anything else.
- arinlen 4y ago> It eliminates the Most Vexing Parse. C++'s most vexing parse issue ceased to be a concern around a decade ago with the introduction of uniform initialization.
- xigoi 4y agoSo by this logic, pretty much every language other than C++ has “objectively best” syntax.
- zamalek 4y agolong long Templates
- Someone 4y agoIf Rusty syntax is objectively superior to almost everything else we've come up with, that almost should make us think before blindly copying it. So, for those thinking “Rusty syntax is objectively superior to almost everything else we've come up with” (I don’t, if only because I don’t believe the syntax of programming languages can be compared on quality without considering the audience), what syntax do you believe it not objectively superior to?
- nineteen999 4y ago> Rusty syntax is objectively superior to almost everything else we've come up with, there's no reason it shouldn't be copied. You mispelled "subjectively". Rust is a hideous looking language, despite its many other benefits.
- Koshkin 4y agoYeah, why not D? It's such a good, mature alternative to C++, albeit not widely adopted.