Fwd: Huston, we have a problem !
Ben Evans
benjamin.john.evans at gmail.com
Wed Feb 16 11:35:49 PST 2011
Try again, actually replying to list this time.
Sent from my iPhone
Begin forwarded message:
> From: Ben Evans <benjamin.john.evans at gmail.com>
> Date: 16 February 2011 17:05:12 GMT
> To: Joshua Bloch <jjb at google.com>
> Subject: Re: Huston, we have a problem !
>
> OK, at the risk of looking stupid - why?
>
> I read <> as a "do some type inference about the generics" - if it's not a generic type, then I could see it resolving to nothing at all.
>
> In a related example, what about the case of a raw type on the LHS?
>
> HashMap hm = new HashMap<>();
>
> If the non-generic example is deemed to be a syntax error, what about this case?
>
> Thanks,
>
> Ben
>
> On 16 Feb 2011, at 16:26, Joshua Bloch <jjb at google.com> wrote:
>
>> I agree that it should be illegal.
>>
>> Josh
>>
More information about the coin-dev
mailing list