Erlang: If I Fell In Love With You

By elbrujohalcon | Published: July 19, 2016

This article is a little bit different to the funny/surprising stories I’ve been writing about Erlang, although somehow related. It is a battle-story in the sense that I found this code while debugging a production system and it shocked me almost as much as finding an exception that I couldn’t catch or a list comprehension without generators. On the other hand, this piece of code was introduced in a completely intentional way by a programmer who actually wanted it to behave in the way it did. And that’s what shocked me even more.

It’s the story of a very determined individual who really truly seriously wanted to write an if expression with no else clause.

Keep reeding on medium

Follow Erlang Central:

Have an Erlang Question?

Reach out to the Erlang community