small medium large xlarge

The latest version of the book is B7.0, released 20 days ago. If you've bought a PDF of the book and would like to update 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: B7.0 (07-Mar-19)
#84653
PDF page: xi
Introduction When you write object-oriented code, you will see that the compiler works for you instead of you working for the compiler. should ...more...
Venkat Subramaniam says: Hi, Thank you for the note. I did mean "object-oriented code" in that sentence. In that paragraph we are talking about different styles. I don't think there is an error. Please let me know if you still think otherwise. Also, if you could let me know your full name, I will be delighted to thank you in the acknowledgement in the book. Thank you Venkat
  • Reported in: B7.0 (13-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84682
PDF page: 47
I think this sentence could be improved by using a lowercase 'w' (instead of an uppercase 'W') and by adding the word "any" (after "pass"): "That wor...more...
  • Reported in: B7.0 (14-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84686
PDF page: 73
This is about the passage "The - operator is useful to create a new list without the specified element, like this:...". It seems to remove only the fi...more...
  • Reported in: B7.0 (14-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84685
PDF page: 81

"The class Nothing has no instances and it represents a value or result that may never exists."

s/exists/exist/--N. Raghavendra

  • Reported in: B7.0 (13-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84683
PDF page: 83
I think this sentence could be improved by removing the "’s" after the word "Here": "Here are the murmurs from the compiler:" Original text: "Her...more...
  • Reported in: B7.0 (14-Mar-19)
#84687
PDF page: 86
It'd be good if the link to the code file <types/safecallreturnstring.kts> is provided. The links to code files are missing in some other places too....more...
Venkat Subramaniam says: Hi Raghavendra, Thank you for the suggestion. I do not provide links to files when doing so will break the flow for the reader. The files internally I use may vary occasionally compared to what the reader is expected to be using if they were practicing along. Thank you. Venkat
  • Reported in: B7.0 (14-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84688
PDF page: 90
The book says, "All the references in this example were of type Any . If the reference types were of the specific class types—for example, if the gree...more...
  • Reported in: B7.0 (14-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84689
PDF page: 91

"Suppose the Animal class has a age property and we need to use that property
when comparing objects."

s/a age/an age

--N. Raghavendra

  • Reported in: B7.0 (13-Mar-19)
  • Fixed: 22-Mar-19, awaiting book release
#84684
PDF page: 98
A minor textual suggestion: would it be clearer to use "[...] we’re interested *in* here." (instead of "[...] we’re interested here.")? (It might also...more...
  • Reported in: B7.0 (22-Mar-19)
#84722
PDF page: 124

Here’s a way to given an explicit name for the companion object of MachineOperator:

Venkat Subramaniam says: Hi, If you mention your full name, if you like, I will be delighted to acknowledge in the book. Thanks Venkat