3 ms·
This is one of the real productivity superpowers of ecosystems like Go and Rust imo
by bsnnkv 3y ago
This is one of the real productivity superpowers of ecosystems like Go and Rust imo
- IshKebab 3y agoPython and JavaScript have similarly good formatters (as long as your idiot colleagues don't insist on using yapf instead of Black, despite yapf producing non-deterministic output!). In fact I would say Rust is probably behind Prettier in terms of auto formatting. The rustfmt output is less pretty (subjective I know), the devs have made several strange decisions and it seems to be semi-abandoned (maybe partly because the devs were ... shall we say not as friendly and welcoming as the Rust community likes to bleat on about). There are a couple of alternative formatters: * https://github.com/andrewbaxter/genemichaels https://github.com/andrewbaxter/genemichaels * https://github.com/jinxdash/prettier-plugin-rust https://github.com/jinxdash/prettier-plugin-rust Still, all of them are better than clang-format!