LanX has asked for the wisdom of the Perl Monks concerning the following question:
I want to use Moo in scripts where startup time matters.
Some of this scripts might be used in conjunction with modules from authors which insist on using Moose. Now the docs say https://metacpan.org/pod/Moo#MOO-AND-MOOSE
> If Moo detects Moose being loaded, it will automatically register metaclasses for your Moo and Moo::Role packages, so you should be able to use them in Moose code without modification.
Does this mean if someone else is using Moose in the depth of the modules I use, then my script will "auto-migrate" to a Moose backend too?
And what if a Moose module is loaded after a Moo module?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Moo detecting Moose" mechanics?
by choroba (Cardinal) on Apr 18, 2019 at 16:23 UTC | |
by LanX (Saint) on Apr 18, 2019 at 17:40 UTC | |
|
Re: "Moo detecting Moose" mechanics?
by Corion (Patriarch) on Apr 18, 2019 at 16:24 UTC | |
|
Re: "Moo detecting Moose" mechanics?
by tobyink (Canon) on Apr 19, 2019 at 00:09 UTC |