Let me give an example. I have an (unreleased, DarkPAN) module, List::Part::SmartMatch, which uses the "Smart"match operator ~~ to do matching on a criterion. I don't want to rename this module to List::Part::SmartMatch::5_010 , because actually that module does not care about what the smartmatch operator does. And it's highly unlikely that any user of this module wants anything else than "their view" of how "Smart"match currently behaves.

I presume that maybe with 5.016 or later, the ~~ operator gets fixed, but if I had to specify one fixed version for my modules semantics, it would have to stay forever with the broken smartmatch semantics to no fault of its own.

This is one case where it would help to either be able to specify "Infinite" upwards compatibility (at least from the foreseeable future), or a convenient way to specify "I want the smartmatch behaviour that my caller expects". Except that the latter would basically be dynamic runtime dispatch of operators, which would be convenient for my case but horrible overkill in the general case.


In reply to Re^8: Back to the __future__ by Corion
in thread Back to the __future__ by cdarke

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.