enum-paradise
enum-paradise copied to clipboard
Evaluate feasibility of supporting ADT style of definition
trait Tree
case object Empty extends Tree
case class Leaf(x:Int) extends Tree
case class Node(left: Tree, right: Tree) extends Tree
Not sure one could gain any benefit VS this syntax