I’d love to have a registry of all subclasses of a...
# announcements
p
I’d love to have a registry of all subclasses of a certain class, that doesn’t have to be manually populated at runtime (ie, I’d love for future developers to not have to first add another subclass, then go and add a line in another file to add it to this registry). If I were just targeting the jvm, I’d use the ServiceLoader pattern and @AutoService, but that’s not an option that’s available to me if I’d like to be able to also include classes defined in commonMain/if I’d like this mechanism to continue to work when targeting other platforms.