Enumerations

  • Enumerations allow you to create a new type that can have a value of several tagged elements using the enum keyword

  • match helps ensure exhaustive handling of all possible enum values making it a powerful tool in ensuring quality code