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

Re: [PATCH] deprecate ?PATTERN?

Thread Previous | Thread Next
From:
David Golden
Date:
November 24, 2010 02:33
Subject:
Re: [PATCH] deprecate ?PATTERN?
Message ID:
AANLkTi=F1pK3Rtf_j-sQX2+fx1dA8o7XFXwG4siQZyM+@mail.gmail.com
On Wed, Nov 24, 2010 at 2:57 AM, Zefram <zefram@fysh.org> 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
> m?PATTERN?.

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

http://rt.perl.org/rt3/Ticket/Display.html?id=79688

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


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