The Artima Developer Community


Errata for Programming in Scala, 4th Edition
Chapter 30: Object Equality
Return to errata index.

Page 646 (PDF page 684):
"For value types, == is value comparison, just
like in Java. For reference types, == is the same as equals in Scala."

I wonder if it shouldnt be:
"is the same as equals in Java."
---
Reworked to make it clearer in 5ed. We did mean in Scala, but meant == in
Scala not equals in Scala.

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.