develooper Front page | perl.perl5.porters | Postings from October 1999

Re: PROPOSAL: D'oh::Year [was: Re: Making -DPERL_Y2KWARN useful after 946684800]

Thread Previous | Thread Next
From:
Gurusamy Sarathy
Date:
October 31, 1999 13:53
Subject:
Re: PROPOSAL: D'oh::Year [was: Re: Making -DPERL_Y2KWARN useful after 946684800]
Message ID:
199910312159.NAA06097@activestate.com
On Sun, 31 Oct 1999 04:27:15 EST, Michael G Schwern wrote:
>So I submit this as a candidate for inclusion into the core.  Everyone
>screws up printing the year in Perl at some point, and it would be
>nice to answer the "PERL HAS A Y2K BUG" posts on clpm with a simple
>"go use this module".

Sure, but note that in general I don't consider that a particularly
good reason for something to be in the core.  One can point to CPAN
easily enough.

As for the approach, I think extending B::Lint is a better route
for catching things that can be caught at compile time.

>                       D'oh::Year not only deals with y2k bugs, but
>also handles year mishandling I'll expect to see post-y2k along with
>the potential to be expanded to handle other canonical date bugs.

IMHO, "20$yr" only has marginal value because that kind of mistake
will be largely self-correcting and obvious, because people will get
back "20101" rather than something that is temporarily correct.

And as long as I'm handing out free advice, D'oh:: is probably too
cute to be comprehensible to vast numbers of people, if we ignore
the fact that writing ' to mean :: is vaguely deprecated.

>I ask for it to be considered orthoginal to -DPERL_Y2K_WARN rather
>than as a replacement.  I see no reason to intertwine their fates.

Works for me.  Best wishes for a independently healthy, vibrant
life on CPAN. :-)


Sarathy
gsar@ActiveState.com

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