Étude 1-1: Experimenting with Errors

The first chapter of Introducing Erlang encourages you to play around with the interacative erl system. In this étude, keep using erl, but purposely make errors.

Try leaving out parentheses in arithmetic expressions. Try putting numbers next to each other without an operator between them. Try adding "adam" to 12. Make up variable names that you are sure Erlang wouldn’t ever accept.

That way, you’ll get a feel for the sort of error messages Erlang produces and not be as baffled when you get errors that you aren’t expecting.

Get Études for Erlang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.