Erlang: If I Fell In Love With You

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

Posted on July 19, 2016

Tags: