develooper Front page | perl.perl5.porters | Postings from July 2018

Re: Allowing require to return false

Thread Previous | Thread Next
Dave Mitchell
July 28, 2018 21:48
Re: Allowing require to return false
Message ID:
On Sat, Jul 28, 2018 at 11:58:55AM +0100, John Imrie via perl5-porters wrote:
> There may be a way of implementing this with out too much trouble.
> 1st make it controlled by a feature inside the module, which means that it
> wont break old code

But why make it even more complex than it already is? Why is
requiring a feature / minimum release at the top of a module any easier
than adding a '1;' at the end? Now people have to remember both ways.
See the subthread about die versus false as to whether %INC is set;
there's enough cognitive load already without adding just that bit extra.

Never do today what you can put off till tomorrow.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About