develooper Front page | perl.perl5.porters | Postings from December 2016

Re: Should we bring in Module::Runtime into core?

Thread Previous | Thread Next
From:
Dan Book
Date:
December 8, 2016 17:10
Subject:
Re: Should we bring in Module::Runtime into core?
Message ID:
CABMkAVW2B0NZH96dupi=d6M3M7WBPQbQCsbV4fGPRuYB4xuc+A@mail.gmail.com
On Thu, Dec 8, 2016 at 7:11 AM, Lasse Makholm <lasse.makholm@gmail.com>
wrote:
>
>
> Adding a simple load_module() (or load_class) function to Module::Load
> that would always:
>  - interpret its argument as a module/class name
>  - load the module and return true or die trying
>
> would, in my opinion, go a long way in removing the need for other modules.


I agree, this would fit my current use cases for Module::Runtime. The
return value being the return value of the module (ala require_module) or
the module name (ala use_module) would have to be bikeshed. Also, I think
there is some use case for use_package_optimistically but I don't know if
it's important enough to have in core.

-Dan

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