Swift operators and nil

Question or problem in the Swift programming language: What is the explanation for this behavior? let x: Int? = nil if x < 10 { print("x < 10") } It prints "x < 10". Shouldn't this produce a runtime error or at least a compiler warning? EDIT: I submitted a bug report to Apple and […]

Continue Reading