»»» This post is about the immature Perl 6, not the rock solid Perl 5 «««

I'm not aware of a compelling reason to wait for 6.0.0. cf Moose which used P6 OO design as-it-was-then as its starting point.

I think a one hour review/consideration of P6 macros as they are now would probably be worthwhile for anyone considering the design of a macro facility for P5 today, even if their conclusion is "we can't use any of this in P5". The heart of the Macros spec is in the Macros section of the Subroutines spec, so it's fairly easy to review the overall design. And the basics, plus hygiene, have already been implemented in Rakudo, so it's easy to try it out too, eg by using the online evalbots on #perl6. I'd be happy to provide further pointers if you or anyone else expresses interest.

Another possibility I'm particularly curious about is ways in which P5 and P6 can leverage each other to create a greater Perl. While I don't currently see a way to do this in relation to macros, perhaps someone more creative than I could use Inline::Perl5 and/or v5 to bring some macro magic to P5.


In reply to Re^5: The Case for Macros in Perl by raiph
in thread The Case for Macros in Perl by einhverfr

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.