Prev: Putting passwords in a properties file?
Next: Interview
From: Arne Vajhøj on 4 Oct 2009 21:25 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 5 Oct 2009 03:02 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 5 Oct 2009 05:17 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 5 Oct 2009 07:22 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 5 Oct 2009 09:58
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 |