What should default interfaces be for?

Chance notecrusher at gmail.com
Wed Mar 14 18:42:10 PDT 2012


On Tue, Mar 13, 2012 at 3:30 AM, Patrick Wright <pdoubleya at gmail.com> wrote:
> Regarding default methods, the only concern I have is whether the
> proposed approach will also prove useful for non-Java languages on the
> JVM, such as Scala - in this interview with Martin Odersky he suggests
> it doesn't cover all the cases he would like for Scala
> (http://www.infoq.com/articles/odersky-scala-interview).

It's too bad Odersky doesn't say HOW the defender method spec falls
short of supporting Scala traits. It could be that Scala traits allow
specifying their base class at instantiation time.

Chance


More information about the lambda-dev mailing list