title: Scala single method interface implementation
body: <p>Does Scala have any syntactic sugar to replace the following code:</p>
  
  <pre><code>val thread = new Thread(new Runnable {
     def run() {
       println("hello world")
     }    
  })
  </code></pre>
  
  <p>with something more like:</p>
  
  <pre><code>val thread = new Thread(() =&gt; println("hello world"))
  </code></pre>
  
  <p>in cases when the trait/interface needs only one method to be implemented? If not, is there any chance to have this feature in Scala in the future? It is especially useful when one deals with Java classes.</p>
  
  <p>I found a similar question asked three years ago: <a href="https://stackoverflow.com/questions/6483262/generically-implementing-a-java-single-abstract-method-interface-with-a-scala-cl">Generically implementing a Java Single-Abstract-Method interface with a Scala closure?</a> The answer says we should have the feature in Scala 2.10. I've looked for Single Abstract Method keyword but I have not found anything. What's happened with the feature?</p>