Why does the case class in Scala needs to have compulsory parenthesis().
case class TestCase() {}
Why it cannot be like below:
case class TestCase {}
Why does the case class in Scala needs to have compulsory parenthesis().
case class TestCase() {}
Why it cannot be like below:
case class TestCase {}
This is to avoid mistakes.
If you have a case class without args it means all case classes that you create will be identical so in most cases what you really mean is to do case object