Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107254

Re: [OT] Java generics

From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: [OT] Java generics
Date 2016-04-18 20:32 +1200
Message-ID <dnjkd8FtsjnU1@mid.individual.net> (permalink)
References <CAN8CLg=_5oBp5ehR_NgfjQcXuM5cWajAVdKT7BytKJ93r13L0Q@mail.gmail.com> <mailman.118.1460931049.6324.python-list@python.org>

Show all headers | View raw


> On 17 April 2016 at 23:38, Ian Kelly <ian.g.kelly@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[OT] Java generics (was: Guido sees the light: PEP 8 updated) Tim Delaney <timothy.c.delaney@gmail.com> - 2016-04-18 08:02 +1000
  Re: [OT] Java generics Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-18 20:32 +1200
    Re: [OT] Java generics Marko Rauhamaa <marko@pacujo.net> - 2016-04-18 12:11 +0300

csiph-web