Subject: | ->export_to_level in Future::Utils |
Currently Future::Utils is just importing the 'import' sub from Exporter - for some helper modules it's useful to apply imports to the caller, particularly for tidying up the 'use' list when similar patterns of modules are used in several places.
Something along the lines of:
use Some::Helper::Module qw(:all);
try { fmap_void { pairmap { } ... } } catch { ... };
Inheriting from Exporter is my usual approach for this, alternatively would it be possible to add export_to_level to the import list?
With the inheritance approach, there seems to be a bug with base.pm (https://github.com/doy/try-tiny/pull/11) which parent.pm doesn't have (https://github.com/doy/try-tiny/issues/14).
cheers,
Tom