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

Can detect, but how many are forced? Have you tried using Gentoo with "-Wall -Werror" everywhere?

You have some theoretical guardrails that aren't used widely in practice, many times even can't be used. If they could just be introduced like that, they'd likely be added to the standard in the first place.

The fact that the previous commenter can even ask the question if someone has analyzed or proven coreutils shows how little this "can detect" really guarantees.

The end your "can trivially detect" is very useless compared to Rust's enforcing these guarantees for everyone, all the time.



-Wall -Werror is rare? That is more like the default for serious projects. The non-daily flags for code checking are -Wpedantic and -fanalyzer stuff.


It's rare enough that you can't have your entire Gentoo built with it, especially not after a compiler update.




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

Search: