Implicit 'this' return for void methods
David Holmes
david.holmes at oracle.com
Wed Mar 26 04:28:39 UTC 2014
On 26/03/2014 6:19 AM, Victor Polischuk wrote:
> Good day, everyone,
>
> I have a question regarding a proposal I found some time ago: http://tech.puredanger.com/java7#chained.
More direct original link:
http://www.mernst.org/blog/rss.xml#AModestLanguageProposal
> In a word, it is all about replacing 'void' behavior to always return 'this' and I think for static methods it would be nice to return Class instance. I have not found any mentions in JEPs and just wonder if the idea is rejected or still somewhere in pipeline for Java 1.x. (or perhaps it is just waiting to be filed by someone in brand new JEP).
I don't think this has gone beyond a blog post from 2007. I don't recall
any attempt at turning this into a JEP but perhaps it was discussed as
part of Project Coin for Java 7?
David
> ---
> Regards,
> Victor Polischuk
>
More information about the core-libs-dev
mailing list