3 ms·
How is this related to the article? And what, exactly, does Rust sacrifice for safety?
by pcwalton 11y ago
How is this related to the article?
And what, exactly, does Rust sacrifice for safety?
- zerr 11y ago> How is this related to the article? The article compares Rust vs C++. No surprise that the [potential] language in the middle of these two extremes is mentioned.... > And what, exactly, does Rust sacrifice for safety? Clarity, usability... Here is Alexandrescu's quick overview of it: https://www.quora.com/Which-language-has-the-brightest-future-in-replacement-of-C-between-D-Go-and-Rust-And-Why https://www.quora.com/Which-language-has-the-brightest-futur...
- pcwalton 11y agoI've addressed the "bulging muscle" criticism many times before. Suffice it to say that it has nothing to do with safety and everything to do with a cultural difference between untyped and typed generics. C++ and D use untyped generics, while pretty much every other language in existence, Rust included, uses typed ones. It's a tradeoff, and I think Rust made the right choice. In fact, Rust chose "clarity" and "usability" over the expressive power of C++ and D templates!