https://kotlinlang.org logo
c

cedric

06/13/2016, 2:26 AM
Not sure you can have this assurance since it depends on the serializer, but yes, I see what you mean. Instead of reflecting, a serializer could be bound to a richer interface (
toInt
,
toFloat
, etc...)