Default method survey results
Jose A. Illescas
jantonio.illescas at rbc.com
Mon Aug 13 06:35:26 PDT 2012
On 13/08/2012 15:23, Deepak S Patwardhan wrote:
>> -----Original Message-----
>> From: lambda-dev-bounces at openjdk.java.net [mailto:lambda-dev-
>> bounces at openjdk.java.net] On Behalf Of Jose A. Illescas
>> Sent: 13 August 2012 16:40
>> To: Brian Goetz
>> Cc: lambda-dev at openjdk.java.net
>> Subject: Re: Default method survey results
>>
>> Brian, Why not add one thirth option (without "default" keyword) to poll?
>>
>> 1. void foo() default {
>> System.out.println("foo");
>> }
>>
>> 2. default void foo() {
>> System.out.println("foo");
>> }
>>
>> 3. void foo() {
>>
>> System.out.println("foo");
>> }
>>
> If we explore going down this path, I think we should also explore using an
> annotation,
>
> @java.lang.Default
> void foo() {
> System.out.println("foo");
> }
>
Deepak, why proposed annotation?
I would like see an implementation as any other java method
(without new keywords, annotations, ...)
Implements a interface method ("default") must be equals to
implement another class method (I want "complexity" out of developer
hands, into compiler...)
> I would be interested in knowing if using such an annotation has any
> demerits.
>
> Regards,
> Deepak S Patwardhan.
>
>>
>>
>> On 12/08/2012 00:30, Brian Goetz wrote:
>>> Poll is closed, and results can be seen here:
>>>
>>>
>>>
>> https://www.surveymonkey.com/sr.aspx?sm=xPw4AxfWK2TTQLQtbIpQCg0l
>> bkw_2fuYDiZnrBDB_2bPyd4_3d
>>>
>>>
>
>
More information about the lambda-dev
mailing list