The Artima Developer Community


Errata for Programming in Scala, Third Edition
Chapter 1: A Scalable Language
Return to errata index.

This is neither for PDF nor for paperback edition. I am reading Kindle
version bought at Amazon.

The code examples are in very small, almost unreadable font size. Can
anything be done about this? Thanks!
---
Yes, they were very tiny. We fixed this in 4ed. Sorry for making you
squint.
Page 11 (PDF page 49):
"For example, the function pointers of C and C++ ... Nor do they allow
you to define unnamed function literals."
->
C++ supports lambda-s since C++11, see
https://en.cppreference.com/w/cpp/language/lambda
---
True. We changed this to call out Ruby's mutable strings instead in 4ed.
Tnx.
Page 8 (PDF page 50):
... and sends the result back to the requester using the message send
requester ! sum ...
The code example uses "requester ! checksum" instead of "sum".


Martin Odersky; Lex Spoon; Bill Venners. Programming in Scala, Third
Edition (1620) (Kindle Locations 388-390). Artima Press.

Fixed in 3ed 4th printing
Page 8 (PDF page 50):
First paragraph after code sample says that "and sends the result back to
the requester using the message send requester ! sum". 

I think "requester ! sum" is typo here and it should be "requester !
checksum", since this case matches with GetCheckSum it would be better to
send checksum instead of sum.

FIXED in 3ed 4th printing
Page 8 (PDF page 50):
"If it receives a GetChecksum message, it calculates a checksum from the
current value of sum and sends the result back to the requester using the
message send requester ! sum."

SHOULD BE

"If it receives a GetChecksum message, it calculates a checksum from the
current value of sum and sends the result back to the requester using the
message send requester ! checksum."

FIXED in 3ed 4th printing
Page 10 (PDF page 52):
"This is how the designer of Akka's actors API enabled you to use
expressions such as requester ! sum shown in the previous example: `!' is
a method of the Actor class."

should be

"This is how the designer of Akka's actors API enabled you to use
expressions such as requester ! checksum shown in the previous example:
`!' is a method of the Actor class."

FIXED in 3ed 4th printing
Page 20 (PDF page 58):
For instance, Lisp, Haskell, and Pythonimplement big
integers; Fortran and Python implement complex numbers.
->
For instance, Lisp, Haskell, and Python implement big
integers; Fortran and Python implement complex numbers.

Note: This seems to be fixed already in 3ed.

Page number: Book type: Paperback book PDF eBook
Book version: (Or build date. Found on back of title page.)
Your feedback:
Your name: (optional)
Your email address: (optional) (will not be published)

Copyright © 2021 Artima, Inc. All rights reserved.