Closed tobyink closed 2 years ago
Type::Library::_exporter_expand_tag
can probably be completely eliminated.
Type::Library::_mksub
can probably be moved to Eval::TypeTiny
or somewhere. Same with _subname
(and that can probably be shared with Type::Params).
Type::Library::_exporter_permitted_regexp
can probably be eliminated.
There's too much logic in
add_type
and_exporter_expand_sub
.Instead, Type::Library should call
$type->exportables
. That should return something like:exportables
can probably be a lazy-built attribute rather than a method.Useful for #114 and to a certain extent #113.