I thought this was long gone but today I found out it is still legal:

switch i {
case 4 ... 6: ()
case 3: print("Here")
default: break
}

Is there a motivating factor for keeping this in the language? The compiler 
picks up on Void and emits an error. You'd think () would produce the same 
results but it doesn't.

-- Erica

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to