case trait A
trait A extends Product with Serializable
+1 if it gives you .copy() for the common fields... although that
might require a definition something like this:
case trait A( field: String,
... )
--
You received this message because you are subscribed to the Google Groups "scala-debate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-debate...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
+1 if it gives you .copy() for the common fields... although that might require a definition something like this:
case trait A( field: String, ... )
ARKBAN
On 10/11/16 1:01 PM, Owen wrote:
--Wherecase trait A
would desugar to
trait A extends Product with Serializable
This would mitigate the problem of Scala inferring a superfluous "Product with Serializable" for the result of methods that return case classes, for example Left and Right.
You received this message because you are subscribed to the Google Groups "scala-debate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-debate+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-debate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-debate+unsubscribe@googlegroups.com.