DEV Community

loading...

Discussion on: C++ Developer Learning Rust!

Collapse
geoxion profile image
Dion Dokter

Great, nice article!
About the opinionated naming, it does make sure that all Rust code looks and feels the same. This is especially true when rustfmt and cargo clippy are used.

Collapse
rua profile image
Rua

I do feel that such a thing ought to be handled by clippy and rustfmt, not by the compiler itself. It's not the compiler's job to enforce formatting standards IMO.

Collapse
geoxion profile image
Dion Dokter

Only naming is done by the compiler.
I do get where you're coming from, though. But if it's not enabled by default, people just won't use it. That's sadly the case.

You can opt out of you want, but you'll need to do that in every project.