[OT] Java generics

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Apr 18 04:32:38 EDT 2016


> On 17 April 2016 at 23:38, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>
>>The diamond operator in JDK 7 makes this a lot more tolerable, IMO:

The diamond notation helps slightly, but not very much.
What would help a lot more would be something like C's
typedef for giving aliases to type expressions.

It's understandable that Java didn't originally have
a typedef, because all types had short enough names
anyway. But generics changed that in a big way, and
it baffles me that some form of typedef wasn't added
soon afterwards.

-- 
Greg



More information about the Python-list mailing list