The Artima Developer Community


Errata for Programming in Scala, Third Edition
Chapter 15: Case Classes and Pattern Matching
Return to errata index.

Page 277 (PDF page 310):
Text talks about matching constructor pattern UnOp("-", e), with "... and
whose second argument matches e". Since e is being introduced here, it
seems misleading to talk of any argument matching e (as if this could
fail.) It'd be better to state something like that anything at that
position in the expression is considered a match, and e is bound to that
part of the expression.

FIXED in 4th printing
Page 297 (PDF page 330):
The text mentions "the react example given above".  However, there is no
"react example".  I'm guessing you mean to say "receive example" or "Akka
actor example".

FIXED in 3ed 4th printing.

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 © 2024 Artima, Inc. All rights reserved.