HoHoH ... They're coming to take me away

runrig on 2006-07-21T18:13:29

Notice: In case you're dropping on this post from the nether regions of the internet, let me make it clear that this rant is not about perl.

I need an associative list class, okay, I can write a class for that...wait, I need a list of lists, hmm, well, I can write a class for that also...but wait, what if I need a list of lists of lists???

Arrggh, strong/static/whatever typing sucks!

(Actually, if I add another instance variable to the first list class, and add some more methods, I could get a list of lists of etc...but still, ick! But I think that's what I'll do)

Update: Darn, I thought I had previously seen a recursively defined class, i.e., an instance variable of the same class it is contained in, but I was wrong, and the compiler complains. My previous rant stands!

Another update: I can't even define the list of lists the way I want, since I can not return an instance of the first list class from a method in the second list class. Grrr.