[swift-evolution] Recent change makes Swift 4 less safe.
a.michail at me.com
Fri Jul 28 16:23:18 CDT 2017
The latest beta doesn’t allow you to append “()” to an enum name with no associated value in a switch case.
This makes Swift less safe because appending that “()” is an excellent way to indicate that you are not ignoring the associated value in the swift case because there isn’t any.
Suppose that you later add an associated value. Then the switch case with the “()” will give a compile error, which is better than silently introducing a bug into your code.
More information about the swift-evolution