[swift-evolution] Optional precondition after else and #else

Amir Michail a.michail at me.com
Tue Dec 8 07:47:01 CST 2015


For example:

if a > 0 {
….
} else a < -5 {
…
}

This would be the same as:

if a > 0 {
….
} else {
  precondition(a < -5)
…
}



More information about the swift-evolution mailing list