title: How will Java lambda functions be compiled?
body: <pre><code>Loop.times(5, () -&gt; {
     System.out.println("looping");
  });
  </code></pre>
  
  <p>Which of these would it effectively compile to?</p>
  
  <pre><code>for(int i = 0; i &lt; 5; i++)
      System.out.println("looping");
  </code></pre>
  
  <p>or something like</p>
  
  <pre><code>new CallableInterfaceImpl(){
      public void call(){
        for(int i = 0; i &lt; 5; i++)
            System.out.println("looping");
      }
  }.call();
  </code></pre>
  
  <p>So would it replace (kind of inline), or actually create an anonymous class?</p>