I'm pretty new to Scala and would like to ask about conventions. I have the following classes:
case class Cltn(msgs: Seq[Msg])
case class Msg(value: Int)
Is it common to define this classes in the same compilation unit? Or this is not conventional and we should define them in different ones? I came from Java that's why I ask about this.
If we can define them in the same compilation unit, can we choose the name of this unit that differs from Cltn
and Msg
, or this is not conventional? Like Parameters.scala