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

Re: Allowing require to return false

Thread Previous | Thread Next
Tomasz Konojacki
July 29, 2018 00:23
Re: Allowing require to return false
Message ID:
On Sat, 28 Jul 2018 22:48:34 +0100
Dave Mitchell <> wrote:

> 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.

Yeah, that fact about %INC made me change my opinion. Not having to
write "1;" would be a nice feature, but all those idiosyncrasies of
require() implementation make it not worth the trouble.

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