michalmuskala

michalmuskala

Erlfmt 1.0 release candidate

I’m very happy to announce that recently we’ve released erlfmt 0.13.0 that we consider first release candidate for the 1.0 release.

What is erlfmt

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.

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.

What does the 1.0 release mean

With the 1.0 release we intend to stabilise the format — this means that changes that cause the formatter to re-format the code won’t happen, outside of fixing critical bugs. This offers increased stability and confidence to the users.

We’d like your feedback

We intend to release the final 1.0 version on May 17. Now is the final opportunity for feedback, if you’d like to influence the format erlfmt produces. In general, though, we won’t consider major changes, in particular those around major choices we’ve been documenting in formatting decision documents, without a very compelling argument.

It’s now great time to try out erlfmt on your project. If you do have any feedback we haven’t addressed before, we would appreciate you sharing your remarks on github issues with examples.

Links

Most Liked

olafura

olafura

Congratulations this was one of the things always bothered me when I was getting into Erlang, before Elixir was a thing. I feel like it’s going to help people experiment with Erlang.

Last Post!

olafura

olafura

I know Elixir didn’t have a code formatter when I started using it but it was more familiar because I was coming from using a lot of Python and the syntax seemed easy to pick up.

Was a bit more intimidating sending PRs in Erlang projects where you weren’t sure if you were following the correct formatting rules.

Where Next?

Popular in Erlang News Top

Nicd
The Erlang Ecosystem Foundation is a new non-profit organization dedicated to furthering the state of the art for Erlang, Elixir, LFE, an...
New
kennethL
HiPE is the runtime and compiler support for native code generation of Erlang modules that some of you might have tried, it is part of th...
New
kennethL
Here is a new interesting blog post from the OTP team, “The Road to the JIT”. This post gives a history lesson that outlines the major Er...
New
New
Devtalk
A new Erlang news item has been posted! Link: Release OTP 23.3.4.3 · erlang/otp · GitHub Posted via Devtalk.
New
Devtalk
A new Erlang news item has been posted! Link: Release OTP 24.1.4 · erlang/otp · GitHub
New
erlangforums
A new Erlang announcement has been posted: Original announcement:
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement