michalmuskala

michalmuskala

Try erlfmt today!

We’re very happy to announce the general availability of erlfmt - an automated code formatter for Erlang.

erlfmt is an opinionated Erlang code formatter. By automating the process of formatting the code, it frees your team up to focus on what the code does, instead of what it looks like. erlfmt works with any Erlang file: .erl , .hrl , rebar.config , escripts, and more. It can be used both in rebar3 projects and standalone as a precompiled escript.

erlfmt is feature complete and now is a final opportunity, before the release of version 1.0.0, to influence formatting decisions. We would appreciate your feedback, try out erlfmt on your project and share your remarks by opening a github issue with examples.

Comparison with other erlang formatters

In it’s design approach erlfmt is very similar to the Elixir formatter - it should feel very familiar for most Elixir users. The formatter never changes the semantics or structure of the code. It provides as little configuration as possible. It also avoids special cases as much as possible. Elixir users will also find the familiar behaviour of preserving newlines and respecting some other elements of the original format.

Links

Most Liked

dom

dom

Looks fantastic! I might have to try plain old Erlang again if you guys keep improving things :stuck_out_tongue:

Qqwy

Qqwy

TypeCheck Core Team

Congradulations on this release! Very exciting :confetti_ball:! :smiley:

akoutmos

akoutmos

Author of Build a Weather Station with Elixir and Nerves

This is awesome!!! Huge thanks to you and everyone else involved :slight_smile:

Where Next?

Popular in Erlang News Top

AstonJ
Erlang/OTP 20.1 is the first service release for the 20 major release. The service release contains mostly bug fixes and characteristics...
New
Devtalk
A new Erlang news item has been posted! Link: Release OTP 23.3.4.2 · erlang/otp · GitHub Posted via Devtalk.
New
Devtalk
A new Erlang news item has been posted! Posted via Devtalk.
New
Devtalk
A new Erlang news item has been posted! Link: Release OTP 24.1.6 · erlang/otp · GitHub
New
jhogberg
maint was accidentally hard-reset to master about an hour ago and pushed upstream, and a few of our own commits were then based on incorr...
New
erlangforums
This thread will be used to cross-post official Erlang News via erlangforums.com (and will replace the Devtalk Erlang news cross-poster)....
130 10365 148
New
Devtalk
A new Erlang news item has been posted! Link: Release OTP 23.2.7.2 · erlang/otp · GitHub Posted via Devtalk.
New
michalmuskala
We’re very happy to announce the general availability of erlfmt - an automated code formatter for Erlang. erlfmt is an opinionated Erlan...
New
Devtalk
A new Erlang news item has been posted! Link: Release OTP 23.2.4 · erlang/otp · GitHub Posted via Devtalk.
New
erlangforums
A new Erlang announcement has been posted: Original announcement:
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39523 209
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement