Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

runrig (3385)

runrig
  dougwNO@SPAMcpan.org

Just another perl hacker somewhere near Disneyland

I have this homenode [perlmonks.org] of little consequence on Perl Monks [perlmonks.org] that you probably have no interest in whatsoever.

I also have some modules [cpan.org] on CPAN [cpan.org] some of which are marginally [cpan.org] more [cpan.org] useful [cpan.org] than others.

Journal of runrig (3385)

Friday July 21, 2006
01:13 PM

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

[ #30371 ]

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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.