|
|
|
|
|
by oflannabhra
1672 days ago
|
|
In Swift specifically, switch statements are exhaustive, so adding a new case to an enumeration that is switched on will automatically give you compilation errors at every point in the code base where that enum is matched against. Which, in my experience is a huge advantage rather than the supposed disadvantage Fowler is saying it is (although I could see that being the case in many other languages). |
|