lambda-repo workaround [was Re: Can't get lambda forest to work]
Rémi Forax
forax at univ-mlv.fr
Fri Jun 18 00:38:12 PDT 2010
Le 17/06/2010 15:45, Maurizio Cimadamore a écrit :
>
>> This is what I was referring to. It means to use a map function like
>> that in the strawman proposal, you need functions which use the boxed
>> types, not the more usual ones using primitive types.
>> See http://blog.fuseyism.com/index.php/2010/06/17/higher-level-functions-in-java/
>> where I did a quick basic implementation of map as a test and run into
>> this issue.
>>
>>
> I suggest you correct your post, since javac is not crashing anymore ;-)
>
> Your request seems fair enough; I will discuss this with my team and see
> if there are some lurking unsafety issues that justify the lack of
> boxing support in the current spec.
>
> Maurizio
>
I think there is no problem if you don't try to convert primitive type.
#double() foo = #() (3); // not legal
Rémi
More information about the lambda-dev
mailing list