Is there a way with reified generics to safely get a
from a generic
at compile-time? I know about
but that relies on reflection. Likely doesn’t exist, but it would be cool to be able to mark a generic reified argument as
too (maybe limited to
so that the constraint could be validated at compile time) so the compiler can validate it’s not used improperly and also to allow compile-time optimization of the inlined code to get the Serializer companion/object that’s available.