Sealed traits and their implementations

I can’t wait to be able to replace all of that with the following equivalent in Scala 3:

enum Color {
  case Red, Green, Blue
}

which is just syntactic sugar for

enum Colour {
  case Red
  case Green
  case Blue
}
1 Like