3 ms·
> Language preference is a real thing. It is, much the same as most people don't all learn the same way. Even more, most language wars are people arguing thei
by ruthmarx 2y ago
> Language preference is a real thing.
It is, much the same as most people don't all learn the same way. Even more, most language wars are people arguing their preferences, not objective pros and cons. Rust is different though, as it has real, objective advantages that merit consideration IMO.
- josephg 2y agoSo? So does C++: - It has multiple working compiler implementations - It has a mountain of existing working software & libraries that may never be ported to rust, like most AAA video games, Chrome, Firefox, Windows, CUDA, etc. - C++ has better interop with pure C code. - C++ usually produces smaller binaries than rust. - Complex data structures (like b-trees) are easier to write in C++. (Rust supports pointers in unsafe blocks - but the syntax around pointers is, for some reason, horrible.) I adore rust, and I'd pick it over C++ every day of the week. But C++ is a powerful, fast, mature programming language with a rich ecosystem of compilers and tools. Rust is not a drop-in replacement for C++ in every case.
- ruthmarx 2y ago> So? So does C++: These advantages are not really advantages in the same way the advantages Rust offers are advantages. In fact, most of the advantages you've listed here could apply to numerous languages not especially suited to modern development. As in, they're not real advantages and pale in comparison.