Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know man, the emotion unveiled by your comment shows a deep anxiety in the C community that Rust is going to replace you.


Actually most of us would welcome a "better C", it was just obvious from the outset rust wasn't it. Rust with unsafe - as dangerous as C in the hands of a amateur, as comprehensible as poorly written machine code.


You are just not used to Rust's syntax. In my experience, Rust is much more readable than C, but that's probably because I actually wrote Rust code that is used in production while I only have a theoretical understanding of C.

It's only a matter of experience with the language.

And as the blog post mentioned, `unsafe` is actually necessary to interface with other languages, including C. Without that there's no way it would be able to catch on. Sure, it's a footgun, but it's probably the only one and, again, necessary. It's all about developer responsibility. Maybe to improve the situation we could make it so that when you add a crate cargo explicitly warns you about how many `unsafe`s there are.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: