Removal of function types
Brian Goetz
brian.goetz at oracle.com
Wed Jul 7 16:26:23 PDT 2010
What you mean, presumably, is being able to generify over primitives, likely
via specialization (we're already addressing variadic generics in the context
of exception transparency), as .NET does.
Duh. Why didn't we think of that? :)
Would love to do it, but is way out of scope for JDK 7.
On 7/7/2010 7:17 PM, Nathan Bryant wrote:
> Perhaps there is an alternative middle ground, that would provide
> function types but make them look like SAM's: variadic generics.
>
> Wink wink, nudge nudge.
>
>
> -----Original Message-----
> From: lambda-dev-bounces at openjdk.java.net
> [mailto:lambda-dev-bounces at openjdk.java.net] On Behalf Of Doug Lea
> Sent: Wednesday, July 07, 2010 7:06 PM
> To: lambda-dev at openjdk.java.net
> Subject: Re: Removal of function types
>
> On 07/07/10 13:18, Stephen Colebourne wrote:
>> I suggest using this thread to comment on the removal of function
> types :-)
>>
>
> As one of the instigators-by-counter-example of function types,
> I do wonder what the plan is for providing dozens if not
> hundreds of SAM types for (parallel) aggregate operations.
> As in my infamous workarounds at:
> http://gee.cs.oswego.edu/dl/jsr166/dist/extra166ydocs/extra166y/Ops.html
>
> -Doug
>
>
>
More information about the lambda-dev
mailing list