small medium large xlarge

Errata for Programming Erlang (2nd edition)


The latest version of the book is P2.0, released over 1 year ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P2.0 (29-Jan-15)
PDF page: 184
Probably a mismatch: 3> Pid ! {square, 12}. Area of square is 144 {square, 144} The return value of Pid ! {square, 12} should be {square, 12} ...more...
  • Reported in: P2.0 (01-Jan-15)
PDF page: 38

Missing opening [ at the beginning of the response to 3>

  • Reported in: P2.0 (07-Jun-15)
PDF page: 82
In the description of the maps:from_list function, the description of how duplicate keys in the list are handled is incorrect. "If the same key occurs...more...
  • Reported in: P2.0 (23-Aug-14)
PDF page: 82
The character count example not compile. -module(count). -export([count_characters/1]). count_characters(Str) -> count_characters(Str, #{}...more...
  • Reported in: P2.0 (22-Aug-14)
PDF page: 84
The maps module does not contain any BIFs for converting to and from JSON.. and according to this thread from February on the erlang-questisons mailin...more...
  • Reported in: P2.0 (26-Sep-14)
PDF page: 102
Paper page: 90

At the bottom of the page in the last paragraph we have FuncOrExpessionSeq instead of FuncOrExpressionSeq.--Geert Van Laethem

  • Reported in: P2.0 (21-Oct-15)
Paper page: 119

in example code shows version number to be 4.8 then describes the version number as 4.5.5

  • Reported in: P2.0 (21-Oct-15)
Paper page: 133

comma is missing between = and ! in table.
could lead to confusion of a possible operator of =! type

  • Reported in: P2.0 (27-Aug-14)
PDF page: 160
The section that reads: "The two most common functions that we use to manipulate the load path are as follows: -spec code:add_patha(Dir) => true | {e...more...
  • Reported in: P2.0 (26-Mar-15)
Paper page: 292
compile error for clock1.erl: $ erlc clock1.erl clock1.erl:18: illegal pattern clock1.erl:27: illegal pattern #18: {Browser, #{ clicked => <<"...more...
  • Reported in: P2.0 (10-Feb-15)
Paper page: 378

The URL for the design_principles.pdf is invalid (in footnote)

  • Reported in: P2.0 (14-Aug-14)
PDF page: 408
In this page of the book there is an explanation about monitor application (appmon), I think it should be explained the change made in v17 about appmo...more...
  • Reported in: P1.0 (01-Aug-15)
Paper page: 467

In the second Paragraph of "Similarity Queries" is written:
"They we compute the cosine...", which should be "Then we compute the cosine...".--Kevin

  • Reported in: P2.0 (22-Jul-15)
Paper page: 468
Cross product is wrong. It should be called dot product. The code correctly calculates the dot product. See also HTTP://