O'Reilly logo

Learn You Some Erlang for Great Good! by Fred Hebert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. On Erlang’s Syntax

Many newcomers to Erlang manage to understand the syntax and program around it without ever getting comfortable with it. I’ve read and heard many complaints regarding the syntax and the “ant turd tokens” (a subjectively funny way to refer to ,, ;, and .), how annoying it is, and so on.

Erlang draws its syntax from Prolog. While this gives a reason for the current state of things, it doesn’t magically make people like the syntax. I don’t expect anyone to respond to this by saying, “Oh, it’s Prolog, I get it. Makes complete sense!” As such, I’ll suggest three ways to read Erlang code to possibly make it easier to understand.

The Template

The template way is my personal favorite. To understand it, you must first get rid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required