experimental type alias replacement
This was an idea I had.
This MR adds a list of type aliases to InPartS.
const TYPE_ALIASES = Vector{Pair}[]
New aliases are registered by push!
ing them into this vector.
These would then iteratively be applied with replace
on any type to be reconstructed.
The more aliases, the more expensive it gets, but it sits in front of an eval
so might not be relevant.
This change eliminates the need for evaluating all kinds of consts
into different modules for fix_import
or defining custom reconstruct_subtype
overwrites.
This is a non-breaking feature.
Edited by Jonas Isensee