From: Arne Vajhøj on
Kenneth P. Turvey wrote:
> On Sat, 03 Oct 2009 17:12:18 -0700, Roedy Green wrote:
>> Generics lack the elegance of other Java features. The syntax is ad hoc,
>> unshaved, irregular, Perlish, unfinished.
>
> I find them more useful than you seem to, but your right about the
> syntax. It is quite, quite ugly.

Java use the same syntax for generics as other languages which
Java in general share syntax with does.

It would have been extremely confusing not to have used the
syntax chosen.

Arne
From: Kenneth P. Turvey on
On Sun, 04 Oct 2009 10:09:46 -0400, Lew wrote:

> If by "ugly" you mean "elegant, useful and expressive", then I agree.

She has a great personality. :-)

--
Kenneth P. Turvey <evoturvey(a)gmail.com>
From: RedGrittyBrick on

Joshua Cranmer wrote:
> On 10/04/2009 02:06 AM, Kenneth P. Turvey wrote:
>> On Sat, 03 Oct 2009 17:12:18 -0700, Roedy Green wrote:
>>
>> [Snip]
>>> Generics lack the elegance of other Java features. The syntax is ad hoc,
>>> unshaved, irregular, Perlish, unfinished.

The others are usually always bad but I like Perlish. Just not in my Java.

>> [Snip]
>>
>> I find them more useful than you seem to, but your right about the
>> syntax. It is quite, quite ugly.
>
> What syntax would you use then?
> We can therefore reduce the syntax into one of six possible styles:
> List[Integer]
> List<Integer>
> List(a)Integer
> List#Integer
> List`Integer
> List\Integer

List of Integer

--
RGB
From: Lew on
Joshua Cranmer wrote:
>> What syntax would you use then?

RedGrittyBrick wrote:
> List of Integer

It was hard enough achieving compatibility with the introduction of 'enum' as
a keyword. We don't want to be introducing COBOLish syntax through new
keywords if we can avoid it.

--
Lew
From: RedGrittyBrick on

Lew wrote:
> Joshua Cranmer wrote:
>>> What syntax would you use then?
>
> RedGrittyBrick wrote:
>> List of Integer
>
> It was hard enough achieving compatibility with the introduction of
> 'enum' as a keyword. We don't want to be introducing COBOLish syntax
> through new keywords if we can avoid it.
>

Thats it! I'm taking you off my mailing list of JOBOL announcements. So
there!

Hmm,
private Map of something that extends Integer and a List of something;

--
RGB
First  |  Prev  |  Next  |  Last
Pages: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Prev: Putting passwords in a properties file?
Next: Interview