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

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

Michael G Schwern
February 6, 2004 12:13
Re: [perl #25268] h2xs does not create VERSION stubs
Message ID:
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
Hold on while I slip into something a little more naked. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About