Fun with method references
neal at gafter.com
Wed Aug 4 15:49:12 PDT 2010
On Wed, Aug 4, 2010 at 3:28 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
> > If you do that, you will not be able to introduce function type later !
> But we are already there with Runnable, Callable, Comparator, etc. Any
> strategy must deal with SAM types in a happy way; the world is full of
> If you are saying that we are likely to make the problem worse before we
> it better, that may be so. But there are two possible futures:
> - SAM types only
> - SAM types living side-by-side with function types
The more SAMs and SAM APIs you introduce, the worse you will make things for
the language with function types later. While it is true that things are
already bad, that is no justification for making them worse.
More information about the lambda-dev