Sam Garfinkel
04/17/2020, 9:31 PMserializer from a generic T at compile-time? I know about KClass<T: Any>.serializer() but that relies on reflection. Likely doesn’t exist, but it would be cool to be able to mark a generic reified argument as @Serializable too (maybe limited to internal or private 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.Kroppeb
04/18/2020, 11:58 AMSam Garfinkel
04/18/2020, 4:52 PMKroppeb
04/18/2020, 4:52 PM