Twitter | Pretraživanje | |
Saoirse Shipwreckt 31. sij
My real hot take: you do need some formatting consensus, but nothing more than Rust has had since before 1.0: - what a normal indentation is - what casing is used for each kind of name Nothing else! Beyond that every decision should be made contextually by the code author
Reply Retweet Označi sa "sviđa mi se"
Saoirse Shipwreckt
Automatic formatting rules consistently make actual code worse! Casing rules and common indentation are literally all you need
Reply Retweet Označi sa "sviđa mi se" More
kornel@mastodon.social 31. sij
Odgovor korisniku/ci @withoutboats
Yes! I love that gofmt doesn't have an opinion on whether a construct should be 1-liner or in multiple lines. It lets me to keep boilerplate compact, and draw attention to the tricky parts of the code.
Reply Retweet Označi sa "sviđa mi se"
Steve Donovan 31. sij
Odgovor korisniku/ci @withoutboats
My beef is that rustfmt does not like space after '!' which has been my style for years. Might start using postfix '.not()' to make negation obvious again! Anyway, lost this battle at so moving on
Reply Retweet Označi sa "sviđa mi se"