Read case class object from string in Scala (something like Haskell's “read” typeclass)

后端 未结 6 967
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 20:32

I\'d like to read a string as an instance of a case class. For example, if the function were named \"read\" it would let me do the following:

case class Pers         


        
6条回答
提交回复
热议问题