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

>> half of the rust stuff needs to use the 'unsafe' keyword.

If this is true for the Rust code you are writing, either you are doing it wrong or perhaps you are writing lots of low-level embedded / drivers code?

Having written C and C++ for years and now learning Rust, I much prefer the safety and nice features of Rust. Coding in C and C++ now feels like driving in a car without a seatbelt: you can do it if you don't have other options, but if you do have the choice, why wouldn't you?




Even for low/level embedded drivers code, you don't use 50% unsafe.


In that case, it is being done wrong.

I haven't had to use unsafe Rust yet, but have had to do some squirrely C tricks in the past for really low-level stuff.




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

Search: