in reply to Dealing with abstract methods in Perl 5.8

All this tells me one thing: Perl does not support abstract method natively, and that's why you are introducing this junky. The title is misleading, by mentioning 5.8, you can easily mislead newbies to believe you are dealing with something native to Perl, even potentially a particular version.

Perl is not OO, so why waste all this energy to fake it. If OO is the preference, go with some other language, for example Ruby.

  • Comment on Re: Dealing with abstract methods in Perl 5.8

Replies are listed 'Best First'.
Re^2: Dealing with abstract methods in Perl 5.8
by glasswalk3r (Friar) on Apr 25, 2007 at 14:44 UTC
    All this tells me one thing: Perl does not support abstract method natively, and that's why you are introducing this junky.

    Well, it does not, really. So what? I'm not addicted to OOP and I don't believe it is the solution for everything. Said so, I really don't care if Perl is not 100% OO.

    But I still like to code with Perl and I think that the OO implementation is good enough for my needs (well, almost). Is it wrong to try to make things better? I would be pleased to see some better proposal from you (whoever you are anyway, you didn't even bother to identify yourself) instead of some useless procrastination.

    Perl 5.8.8 does not have any feature that helps in this case? Thanks for telling me that, because that is the version I'm using.

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Re^2: Dealing with abstract methods in Perl 5.8
by Anonymous Monk on Apr 26, 2007 at 13:46 UTC
    Ruby doesn't have abstract methods either. You'd pretty much have to implement them in a similar fashion as here. (Same thing with Smalltalk for that matter). Abstract methods, or lack thereof do not OO make.