Skip to content
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

Open
lpil opened this issue Jan 18, 2017 · 5 comments
Open

Automatic code formatter #99

lpil opened this issue Jan 18, 2017 · 5 comments

Comments

@lpil
Copy link
Contributor

lpil commented Jan 18, 2017

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

@j14159
Copy link
Collaborator

j14159 commented Jan 18, 2017

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 :)

@lpil
Copy link
Contributor Author

lpil commented Jan 18, 2017

I should join the mailing list :)

@j14159
Copy link
Collaborator

j14159 commented Jan 18, 2017

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 :)

@lpil
Copy link
Contributor Author

lpil commented Jan 18, 2017

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.

@CrowdHailer
Copy link

I found this issue and it made me smile. I would like to add a 👍 and 🐳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants