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

Re: [PATCH] deprecate ?PATTERN?

Thread Previous | Thread Next
David Golden
November 24, 2010 02:33
Re: [PATCH] deprecate ?PATTERN?
Message ID:
On Wed, Nov 24, 2010 at 2:57 AM, Zefram <> wrote:
> In discussing (on #p5p) possible new operators, we ran into the issue
> that the obscure ?PATTERN? syntax gets in the way of most uses we could
> potentially make of the question mark.  It was proposed that we could
> deprecate that syntax to reclaim the question mark.  Attached patch
> does so.  It leaves the match-once semantics still available through

The delay between perlbug and perl5-porters is annoying.  I sent a
similar patch to perlbug last night:

To clarify, perlop already says that ?PATTERN? is "vaguely deprecated"
so this is not a *new* deprecation.  It merely clarifies language and
triggers the necessary warning.

My point of view is that we shouldn't have anything "vaguely
deprecated".  Things should be either be deprecated and should warn or
they should not be deprecated.  Anything halfway is confusing.
perlpolicy.pod now differentiates "deprecated" and "discouraged" so we
should be moving anything vague into one of those categories.

As I mention in my commit message, Jesse and Larry swapped emails and
my understanding is that Larry confirmed that this feature
was/should-be deprecated.  I'll let Jesse comment further if needed.

-- David

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