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

Re: Allowing require to return false

Thread Previous | Thread Next
From:
Tomasz Konojacki
Date:
July 29, 2018 00:23
Subject:
Re: Allowing require to return false
Message ID:
20180729022329.1DAE.5C4F47F8@xenu.pl
On Sat, 28 Jul 2018 22:48:34 +0100
Dave Mitchell <davem@iabyn.com> 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


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