develooper Front page | perl.perl5.porters | Postings from November 2011

Re: what's "use VERSION" all about?

Thread Previous | Thread Next
From:
brian d foy
Date:
November 30, 2011 19:03
Subject:
Re: what's "use VERSION" all about?
Message ID:
301120112103391793%brian.d.foy@gmail.com
In article <4ED674D3.9050008@cpan.org>, Steffen Mueller
<smueller@cpan.org> wrote:

> PS: This could also let us do something like:
> 
> use feature 'experimental_foo';
> 
> Which enables the experimental "foo" feature. When we deem foo stable in 
> the next version (or so) of perl, we alias foo and experimental_foo and 
> add "foo" to the default set for the new version of perl. Clearly, this 
> aliasing would have to be complete so that
> 
> use feature 'foo'; no feature 'experimental_foo';
> 
> would disable foo/experimental_foo.

Or, we could:

    use experimental 'foo';

until it becomes a stable feature, at which point it becomes

    use feature 'foo';

experimental.pm could warn about all sorts of things, such as a feature
that's moved from experimental to feature, or has been removed
completely.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About