Type#all_includers


#1

There are too many issues created by me recently, so I’d like to discuss this one here before.

Sometimes there are abstract classes/structs which serve a single purpose – find all its subclasses in compilation time to somehow “register” them. In this case inheritance is useless and composition would be better. The issue is that there is TypeNode#all_subclasses method, but no TypeNode#all_includers.

Could it be implemented please?


#2

:ping_pong:

“No, it’s not” is an answer too.


#3

I guess the answer is Yes, it just needs to be done.


T is not a subclass of Exception