look at this boilerplate. each type has to specify what other custom types it depends on, forming a kind of a tree that devs need to maintain. this leads to code duplication (I have this line at least 4 times), maybe we could solve this.
this is also confusing to beginners and adds extra burden...
proposed ideas:
maybe #[template_child] macro can check if the item has IsA<Object> and if so, ensure_type() on it automatically. is that possible? what would it take?
maybe have a list of type in some top level module (like window or application or whatever) with a list of all types we provide, then ensure_type them all whenever any type in the module is loaded?
other ideas?
we have most of the information to do it automatically. I think it should be done.
look at this boilerplate. each type has to specify what other custom types it depends on, forming a kind of a tree that devs need to maintain. this leads to code duplication (I have this line at least 4 times), maybe we could solve this. this is also confusing to beginners and adds extra burden...
proposed ideas:
#[template_child]
macro can check if the item hasIsA<Object>
and if so,ensure_type()
on it automatically. is that possible? what would it take?ensure_type
them all whenever any type in the module is loaded?we have most of the information to do it automatically. I think it should be done.