I feel rejected :)

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Mar 15 08:55:14 PDT 2011

On 15/03/11 15:41, Rémi Forax wrote:
> public interface Folder<T> {
>         public T fold(T a, T b);
>     }
>     public static <T> Folder<T> max() {
>       return #{ a, b -> (((Comparable)a).compareTo(b)<0)? b: a };
>     } 
Both problems in this and in your earlier example are caused by corner 
cases in the type-inference scheme implemented in the lambda prototype. 
The implemented scheme is provisional - and we are working to gradually 
replace it with an algorithm that matches the latest version of the 
lambda spec that is being discussed as part of JSR 335.


More information about the lambda-dev mailing list