Virtual Extension Methods in upcoming Java 8 release

前端 未结 5 733
既然无缘
既然无缘 2020-12-31 10:23

When I see code snippets like

  interface A {
      void a();
      void b() default { System.out.println(\"b\"); };
      void c() final { System.out.printl         


        
5条回答
  •  星月不相逢
    2020-12-31 10:41

    We need this because it will make the Scala guys absolutely furious. They already have rather similar functionality in the shape of 'traits', so now they'll have to make those work together with these.

    Pissing off Scala guys is literally the highest priority in Java language development.

提交回复
热议问题