Why are case objects serializable and case classes not?

后端 未结 2 1896
半阙折子戏
半阙折子戏 2021-02-05 21:19

I am playing with this example http://scala.sygneca.com/code/remoteactors to learn how remote actors work in Scala (2.8.0). In particular I slightly modified how the messages se

2条回答
  •  梦毁少年i
    2021-02-05 21:48

    Case classes without parameters are meaningless and deprecated. And I see no Serializable in Scala, just serializable. Does it work if you fix these things?

提交回复
热议问题