The feature pragma has one problem - it comes with Perl itself, so it does not inform you about features in higher versions of Perl.

feature pragma is pure perl, all it does is twiddle $^Hints, so it can be dual-lived , it should be dual lived , so this problem not much of a problem

sure, Syntax::Construct can be like Modern::Perl and other $^Hints-twiddlers ...

but there is a benefit to having CORE modules that already handle this fundamental operation, both documenting and turning on features, actually do both things and do them well, its called feature after all ...

so it doesn't really need to turn on //= but it can document it  use feature qw[ // ]

you see what I'm getting at, right? perlver is great for finding stuff out, feature is great for documenting and turning it on ... one place to look information, same old vocabulary , perldoc feature

if you keep vocabulary small, and not have 11teen different names for the same thing ...

Syntax::... a new top level namespace that doesn't scream this is about core perl language features ...

This is the general idea


In reply to Re^3: RFC: Syntax::Construct ( extend use feature / make it dual lived )) by Anonymous Monk
in thread RFC: Syntax::Construct by choroba

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.