Virtual extension methods - syntax options

Brian Goetz brian.goetz at oracle.com
Fri Jun 11 07:59:35 PDT 2010


The answer is neither: the syntax is not set in stone, but we strongly 
discourage ongoing discussions of syntax :)

On 6/11/2010 6:09 AM, Thomas Jung wrote:
> There has been some argument about the syntax options of defender methods.
>
> Is this syntax now set in stone or is this still an ongoing discussion?
>
> I think the two approaches have pros and cons:
> Inline: syntax like a regular method (less syntax), less classes,
> added confusion between interfaces and classes
> Delegation: additional syntax, more code, syntax that only works in interfaces
>
> I don't think that I special syntax is less confusing than the inline
> implementation. For someone new to Java it would be quite hard to
> understand why there is such construct.
>
> Thomas
>


More information about the lambda-dev mailing list