6 kyu

Serializing an Enum

Description
Loading description...
Fundamentals
Design Patterns
  • Please sign in or sign up to leave a comment.
  • Unnamed Avatar

    an enum (classicaly represented in Scala by a trait and its case objects)

    Isn't scala.Enumeration the classical representation?

    • xavierguihot Avatar

      Nowadays case objects inheriting a common trait are usually preferred to scala.Enumeration. Probably why Dotty (future Scala 3) will provide a cleaner Enum