so, I'm starting to use sealed classes a lot, they...
# language-proposals
g
so, I'm starting to use sealed classes a lot, they're really handy, but it has come up twice now that I would like to access a sealed classes instances via reflection, but no such API exists. Any chance I could get some method support for retrieving the subclasses of a sealed type via reflection?
k
groostav: how would you retrieve the `object`s that directly extend the
sealed class
too? I'd like to see a
.values()
method for sealed classes like what enums have, but I'm not sure what exactly it'd return, so I'm not sure if it's even a feasible thing to implement
4