Virtual extension methods - syntax options
Thomas Jung
thomas.andreas.jung at googlemail.com
Fri Jun 11 03:09:19 PDT 2010
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