Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

FWIW, if it weren't for the syntactic/parser limitations that go with indirect object syntax, there have been several situations were I would have liked to have used it. I'm kinda hoping that the P6 syntax definitions will be more precise, and will subsequently allow it's use safely, assuming that it will still be there after Apo-12.

For your isa module, it seems almost too trivial as it is to be worth making it a module. However, I think that your right about use base;, and there are various other OO utility modules around that provide some things which are useful and bits which I think are redundant. It would be nice to sort out a set of useful, lightweight, general purpose extensions to the standard perl OO and put them together, as a single pragma.

It would probably be best if it was possible to get a collective opinion on what people would like to see (that is practical and simple and lightweight) to "clean-up" the current unenhanced state of P5's OO.

There are already a large number of OO enhancement modules on CPAN, but they overlap a lot, each has some good bits and some bad bits. Many of them cannot be used together because of design, implementation or methodology conflicts.

In the same way that there was a project to clean up, simplify and coalese the various Date and Time modules kicking around that resulted in DateTime. A similar project would be beneficial to the whole arena of perl's OO -- I think.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!


In reply to Re: package Foo; isa Bar; why not? by BrowserUk
in thread package Foo; isa Bar; why not? by liz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (5)
    As of 2014-11-29 03:47 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My preferred Perl binaries come from:














      Results (203 votes), past polls