|
|
|
|
|
by JuniperMesos
232 days ago
|
|
> C issue is that C compilers provide very little in term of safety analysis by default. Yes this is precisely a respect in which C is bad. Another respect is that C allows omitting curly braces after an if-statement, which makes bugs like https://www.codecentric.de/en/knowledge-hub/blog/curly-brace... possible. Rust does not allow this. This is not an exhaustive list of ways in which Rust is better than C. > I will take proven C or even static analysed C above what the borrow checker adds to Rust any day of the week. Was coreutils using proven or statically analyzed C? If not, why not? |
|
Which is why your first and only example is a bug from over a decade ago, caused by an indentation error that C compilers can trivially detect as well.