title: What is the standard idiom for implementing equals and hashCode in Scala?
body: <p>What is the standard idiom for implementing the <code>equals</code> and <code>hashCode</code> methods in Scala? </p>
  
  <p>I know the preferred approach is discussed in <em><a href="http://www.artima.com/shop/programming_in_scala_2ed">Programming in Scala</a></em>, but I don't currently have access to the book.</p>