-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic code formatter #99
Comments
Thanks for filing this, definitely in the plans! It's come up a little on the mailing list and is actually next up on my list after v0.2.6 :) |
I should join the mailing list :) |
Please do! And IRC! I'd like to be more transparent about the roadmap in my head to and make it easier for us all to collaborate (prompted initially by @lepoetemaudit) - the mailing list seemed like a good place to start that :) |
Ah, I may have to reinstall the irc client. With Elixir, Erlang, Elm and the companies I've worked for all being on slack I've not used it in some time. |
I found this issue and it made me smile. I would like to add a 👍 and 🐳 |
One of the things I'm really enjoying about Elm is the official style guide and automatic code formatting tools. One can write code in any sloppy style, hit save, and then the formatter will rewrite the file in the correct style.
This allows us to avoid extra typing and removes all code style squabbling between developers! Hooray! It'd be great to have this for Alpaca.
I believe this is generally done by converting source code into AST, and then pretty-printing that back. We could leverage the compiler for the parsing/AST generation if there is a public function to do this in the compiler source code.
Cheers,
Louis
The text was updated successfully, but these errors were encountered: