develooper Front page | perl.perl5.porters | Postings from June 2016

Re: RFC: deprecate quantifying zero-length constructs in regexpatterns

Thread Previous
From:
Rocco Caputo
Date:
June 3, 2016 15:24
Subject:
Re: RFC: deprecate quantifying zero-length constructs in regexpatterns
Message ID:
30E07322-2BB1-47D9-8AC1-8617280ED060@pobox.com
On Jun 3, 2016, at 06:16, Smylers <Smylers@stripey.com> wrote:
> 
> Abigail writes:
> 
>> On Thu, Jun 02, 2016 at 11:05:56AM +0100, Smylers wrote:
>> 
>>> How about consistently warning on all the examples Karl gave above?
>> 
>> (Ergo, I'm not too much of a fan of these warnings).
> 
> Removing all of the existing warnings would also be consistent, and
> arguably an improvement on the current situation.
> 
> Having warnings in some of these situations but not others doesn't seem
> to be useful for anybody.

Deliberately being unhelpful all the time isn't an improvement over striving to be more consistently helpful.

It's probably worth keeping the warnings for hard-coded regular expressions.  While it's convenient for generators to sloppily slap together meaningless code, human coders, especially ones asking for warnings, intend to do it much less frequently.

-- 
Rocco Caputo <rcaputo@pobox.com>



Thread Previous


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