Chapter 2
Working with Strings and Enums
Section 4
Dynamic Enums
Using switch statement to handle enums, meaning that if the enum value changes in the future, we will not know, and then, we may not have a correct way of handling the enum value in the switch statement. With Swift 5, by adding a keyword in front of the default case, we will be warned and notified, if there is a change in the enum cases, this warning means we can handle any future changes to the enum values.