84
Does C# (or any other languages) have an official style guide like python has pep8?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Someone else already mentioned Rust, but to add to it,
rustup
installsrustfmt
(opinionated formatter) andclippy
(linter) by default, but you can choose not to run them or even install them.rustfmt
has a few configuration options, but is for the most part strict in how it formats code.PEP8 is nice since it sets some common rules across Python projects, but I'm not a fan of some of the decisions they made. The biggest one for me was discouraging defining variables/attributes/etc that use the same name as built-ins. That means no variable named
input
, no attr on your data model namedid
, etc. Still, since the language doesn't strictly enforce this, you can easily adjust these rules to meet your project's needs.I believe
go
requires you to run the bundled formatter to even compile the code, but I could be misremembering.