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

Re: [RFC] Can we convert lib/perl5db.pl (= the default perldebugger) to strict and warnings?

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
November 25, 2011 07:23
Subject:
Re: [RFC] Can we convert lib/perl5db.pl (= the default perldebugger) to strict and warnings?
Message ID:
20111125152253.GC9305@fsck.bestpractical.com



On Fri, Nov 25, 2011 at 02:49:15PM +0200, Shlomi Fish wrote:
> Hi all,
> 
> I'm issuing this "request-for-comments" to see if anyone can see a good reason
> why I (or someone else who volunteers to do that) should not convert
> "lib/perl5db.pl" (which implements "perl -d") to "use strict;"
> and "use warnings;"? If everyone is OK with that, then I'd like to try doing
> exactly that.

I'd love to see it happen.  I'd encourage you to do it as a series of
small commits rather than a larger change.  The last time I looked at
doing so, I got scared off due to the lack of decent test coverage.
It's very easy to break that code without realizng you've done so.
At some point, I dared Leon Brocard to improve that code. (I bribed
him with beer.) By the time we found a comment along the lines of "#
this increments i"[1], he'd decided it was going to be less work to
write Devel::ebug.


Best,
Jesse


[1] The comment turned out to be incorrect

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