Proposal: Collection Literals
Joshua Bloch
jjb at google.com
Mon Mar 30 17:45:03 PDT 2009
Hi Neal,
Could you please be a be a bit more specific? In particular, could you
provide an example of something that this proposal precludes but the
for-each construct (which is already in the language) does not? Once we
have such an example, we'll be able to weigh the pros and cons
intelligently.
Thanks,
Josh
On Mon, Mar 30, 2009 at 5:40 PM, Neal Gafter <neal at gafter.com> wrote:
> Josh-
>
> This approach precludes some designs for reifying generics in the
> future because it is defined by the implicit creation of non-reified
> interfaces (e.g. List, etc). It isn't clear if we'll ever add
> reification, but it would be a shame to restrict or remove our option
> to do so. You can avoid this by not implicitly tying language
> constructs to particular existing interfaces.
>
> Regards,
> Neal
>
>
More information about the coin-dev
mailing list