develooper Front page | perl.perl5.porters | Postings from February 2004

Re: [perl #25268] h2xs does not create VERSION stubs

From:
Michael G Schwern
Date:
February 6, 2004 12:13
Subject:
Re: [perl #25268] h2xs does not create VERSION stubs
Message ID:
20040206201012.GC21467@localhost.comcast.net
On Fri, Feb 06, 2004 at 10:26:16AM -0600, david wrote:
> Michael G Schwern via RT wrote:
> >The idea of throwing a wad of commented out cut & paste code into the h2xs 
> >template just because the author might need it a dozen releases down the 
> >road is the problem here.  The VERSION issue is irrelevant.
> >
> >Use a module.  That's what they're for.
> 
> So throw a commented-out module use into the template.  How many modules
> have never introduced interface incompatibilities through their lives?
> "Just might" is mistaken in my unresearched opinion, I suspect it's more
> of a certainty.  I have no exhaustive statistics though.

I also don't think its wise to start throwing in commented out "just in case 
you might need it down the road" modules uses into h2xs templates.  How many 
modules have never needed more testing?  We should throw "# use Carp::Assert" 
in there.  And people always forget to check their opens so there should be 
a "# use Fatal qw(open close)".  Pick a pet peeve.  Its a slippery slope 
that shouldn't be started down.  Keep the templates sparse and simple,
throw anything not immediately useful out, so the first time module author 
that's going to use them doesn't get confused.

A perlfaq entry sounds more like the solution to your problem.


-- 
Michael G Schwern        schwern@pobox.com  http://www.pobox.com/~schwern/
Hold on while I slip into something a little more naked.



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