Mozilla-Student-Projects / Projects-Tracker

Keep tracks of Firefox/Thunderbird/Firefox OS features that can/should/will be implemented as add-ons/apps.
66 stars 19 forks source link

Create rustfmt tool, ala gofmt #30

Closed brson closed 11 years ago

brson commented 12 years ago

Being opinionated and strict about syntax is becoming popular, and the Go community has a culture of formatting all their code the same with gofmt. Rust has a pretty printer built into the compiler, but it doesn't always produce the best output, isn't 100% reliable, and isn't wired up to an end-user tool.

This will involve creating a command line interface to the pretty printer and fixing pretty-printer deficiencies. The pretty printer is notoriously difficult to control in some cases and is not passionately maintained, so it may be profitable to do a refactor and/or rewrite. Investigating how gofmt is structured could be helpful.

See also: 3195

icholy commented 11 years ago

:+1: gofmt is great

brson commented 11 years ago

Closing. Graydon is going to be working on this personally.