Hacker News new | past | comments | ask | show | jobs | submit login

> 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-futur...




I'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!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: