Subject: | Patch: require modules in I::I |
Prelude:
(Mithaldu) mst: if Import::Into were to do a require i wouldn't care about ->import being a noop,
since it would then be identical to use :)
(mst) I don't see any reason not to do so; I barely regard Module::Runtime as a dep at this point
In the git repository in the branch require_always are changes to I::I that amount to:
- [ $class->VERSION($version); ] $class->$action(@_)
+ Module::Runtime::use_module( $class[, $version] )->$action(@_)
This removes the trap that users of Import::Into need to be aware of the requirement to load modules before calling import::into on them (and has the slight benefit of reducing code duplication).
The branch includes code changes, test changes, doc changes, dep update and Changes update.