Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Create rustfmt tool, ala gofmt #30

Closed
brson opened this issue Sep 24, 2012 · 2 comments
Closed

Create rustfmt tool, ala gofmt #30

brson opened this issue Sep 24, 2012 · 2 comments

Comments

@brson
Copy link

brson commented Sep 24, 2012

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
Copy link

icholy commented May 1, 2013

👍 gofmt is great

@brson
Copy link
Author

brson commented May 8, 2013

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

@brson brson closed this as completed May 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants