From virtual extension methods to mixins

François Sarradin fsarradin at gmail.com
Mon Jul 9 13:38:07 PDT 2012


Brian,

Thank you to share your advice. I think that my article provides a bad use
of Java too. I don't really encourage this. I am just saying it is possible
and let the reader decides if it is good or bad.

It is a good thing to share best practices, in a view to build "well craft"
software. I have done this with small demonstrations of Java's lambda at
Devoxx France this year. Moreover, I think you know that you can also find
more and more articles about such best practices in Java 8 (even in French
;) ). But I really think that we also have to share worst practices. This
is motivated by the wish to identify them and prevent them. That is why I
wanted to share such an article, even if it is unpleasant.

François-
Le 9 juil. 2012 13:50, "Brian Goetz" <brian.goetz at oracle.com> a écrit :

> Please don't encourage techniques like this.  There are a zillion "clever"
> things you can do in Java, but shouldn't.  We knew it wouldn't be long
> before someone suggested this, and we can't stop you.  But please, use your
> power for good, and not for evil.  Teach people to do it right, not to
> abuse it.
>
>
> On Jul 9, 2012, at 1:12 AM, François Sarradin wrote:
>
> > Hi,
> >
> > I would like to share a blog post. It explains how to get multiple
> > inheritance of the state from the virtual extension methods.
> >
> > "Java 8: Now You Have Mixins!" =>
> > http://kerflyn.wordpress.com/2012/07/09/java-8-now-you-have-mixins/
> >
> > François-
> >
>
>


More information about the lambda-dev mailing list