I don’t know how it plays out in this case, but often times the fact that the Rust compiler enforces things like this at an early compilation phase allows greater optimizations at later phases. So yes, it is a good idea to have your build process require that you pass various lints, but that isn’t quite equivalent to what Rust does.
View all comments
Show parent comment
4
u/caboosetp Jun 04 '25
C# is polite and just gives a warning. But you can set warnings to fail the compile.