Page 654 (PDF page 687):
The following example is indeed not perfect. It's single parameter
should be named "that" and not "other" because it is referred to as
"that" in most of the body.
// A better definition, but still not perfect
override def equals(other: Any) = other match {
case that: Point => ...
}
|