Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is one of the real productivity superpowers of ecosystems like Go and Rust imo


Python 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/jinxdash/prettier-plugin-rust

Still, all of them are better than clang-format!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: