develooper Front page | perl.perl5.porters | Postings from February 2015

Re: RFC: "use re 'strict'"

Thread Previous | Thread Next
Eric Brine
February 5, 2015 20:37
Re: RFC: "use re 'strict'"
Message ID:
On Tue, Feb 3, 2015 at 11:15 PM, Ricardo Signes <>

> * Karl Williamson <> [2014-09-05T13:42:11]
> > I propose that we document this feature as being extensible so that we
> may,
> > from time to time, add new strictures to those currently implemented
> without
> > fear of breaking backwards compatibility.  That is, we may make things
> > stricter in future releases to catch more errors that we don't do now,
> and
> > if your code no longer compiles in that release, you'll have to change it
> > rather than we back out the stricter strictures.  I'd rather not, but if
> > that means marking this as an experiment, so be it.
> After the discussion about and (elsewhere), I
> wonder if
> the next phase of this shouldn't be re::strict, which can have a 'default'
> group as well as individual subcategories.
>   use re::strict;
>   use re::strict 'longhex';
>   use re::strict qw(default smileys);
> I don't suggest that you must do anything to change it right now, as it's
> marked experimental and we can change it in the future without fear.

There's no backwards compatibility issues with adding subcategories later

There's only a backwards compatibility issue if you define that "use
re::strict" enables *all* strictures, which you wouldn't claim until you
add categories.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About