I\'m learning syntax of Swift and wonder, why the following code isn\'t working as I expect it to:
for i in 1...100{
switch (i){
case 1:
Int
The industry standard behaviour of switch can lead to bugs similar to "Go to Fail".
Basically the code doesn't always do exactly what it looks like the code will do when reading over it, which leads to code auditors skipping over critical bugs.
To counter that, Apple has decided switch statements should not work the same in Swift as the industry standard. In particular: