Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
X Chapter 2, subsection "Methods with Multiple Parameter Lists", first sentence of third to last paragraph |
(Please ignore the "Page number of error" field above. I can't find the page number when using the Safari Books Online) Note from the Author or Editor: |
Jian Lan | Jun 15, 2021 | ||
Page X The code example of the section "Case Objects and hashCode" in the chapter 11 |
`println(s"03.04 vs. 03: ${O3.O4.hashCode} == ${"O3".hashCode}")` should be Note from the Author or Editor: |
Jian Lan | Jun 27, 2021 | ||
Page Chapter 5, Scala 3 Implicit Conversions Code that defines "toDollars" |
The bullet #1 for the example that defines a method "toDollars()" refers to it as "toDollar": Note from the Author or Editor: |
Dean Wampler | Dec 18, 2022 | ||
Page Page 56: Character Literals 2nd sentence of 1st paragraph; also '\012' example below 1st paragraph |
To my knowledge, octal escape syntax for character literals in Scala has been removed (pre-Scala 3), though the text is for Scala 3 and describes them as if they are still a part of the language. Trying to use an octal escape sequence for a character literal gives a compiler error, however. Note from the Author or Editor: |
Misha Reswick | Mar 18, 2024 | ||
Printed, PDF, ePub | Page 491 |
The example "Invariant1.scala" and also the subsequent example "Invariant.scala" use "by-name" parameters where they are not needed, i.e., for the "predicate" and "block" parameters. Because the methods are inlined, there is no need to use by-name parameters to delay evaluation of them until inside the method bodies. There are no method bodies after inlining, just blocks of code. |
Dean Wampler |
May 22, 2022 |