palfrey: (Default)
Add MemoryShare This Entry
posted by [personal profile] palfrey at 02:42am on 16/12/2004
Gah... have just spent more time than any sane person should wrestling with the freakish thing that is Java Generics. Let's just say that of all of the implementations of generic/template classes, this is the most botched up. I'd rather be writing Haskell, let's just put it that way.....

Interesting thing from a posting in [livejournal.com profile] cyberpunk - First piercing-type thing I'm vaguely willing to do - given my usual opinion of "If I get anything like that done it'll be augumentation not ornamentation", this is a darn cool thing.
There are 3 comments on this entry. (Reply.)
 
posted by [identity profile] cthulhulovesme.livejournal.com at 02:55am on 16/12/2004
Oooh, practical use for a bridge piercing. I'd worry about it migrating, though.
 
posted by [identity profile] baljemmett.livejournal.com at 04:15pm on 16/12/2004
Interesting... What's botched up about them? I haven't looked at them in any depth yet.
ext_5965: (Default)
posted by [identity profile] palfrey.livejournal.com at 04:41pm on 16/12/2004
A very long list of things I want to do that I can't (C++/Python appears to have spoiled me). Some of these are to do with Generics, and some are to do with collisions with the Java language

1) Operator overloading
2) Find out *which* object is the current generic type, so that I can do type checking on dynamically called functions
3) Subclassable enum's - as they're subclasses of java.lang.Enum this *should* be doable, but no... they're final instead. And java.lang.Enum can't be directly subclassed by the programmer... thrice cursed language designers...
4) Getting rid of all the damn primitive types in favour of an actual OO-language
5) No more calling of vastLongFunction().anotherLengthyFunction().anotherDarnJavaFunction() just to get hold of a relatively common value.

In short, I'd either like to be in C++ (I'm willing to trade the freedom to shoot myself in the foot in exchange for some darn power) or Python (where I could have done all of the above in about 30 seconds flat). Heck, even Haskell would be better. At least that had a function pointer-like concept, which is darn hard to get hold of in Java (and bloody annoying to use when you can).

February

SunMonTueWedThuFriSat
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22 23
 
24
 
25
 
26
 
27
 
28