title: Equality of functions in Scala, is functions objects in Scala?
body: <p>I am reading the book Programming in Scala. In the book, it says that "A function literal is compiled into a class that when instantiated at runtime is a function value". And it mentions that "Function values are objects, so you can store them in variables if you like".</p>
  
  <p>So I try to check the equality between functions. But I failed.</p>
  
  <ol>
  <li><p>If function is object in Scala, then it should behave like other objects in Scala. Maybe check equality of function is meaningless, so it is disabled?</p></li>
  <li><p>And will function be compiled into object in Scala?</p></li>
  </ol>