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.
|