The dream is to have a deterministic style for a given Ruby AST that a tool will always arrive at that looks pretty good.
I want to add "should this be split over multiple lines" prettier-esque features (http://github.com/prettier/prettier …) to RuboCop at some point
-
-
-
I've thought about doing that in unparser and discussed early implementation ideas But than realized rubies syntax is not worth it.
-
The problem is IMO that as ruby (as most dynlang) compensate lack of core design via syntax additions.
-
Now N years later after inception the syntax is hard to parse, and so equally harder to generate.
-
Prettier actually does what you're describing but for Javascript. It doesn't "correct", it just generates source based on the AST.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.