Re: [swift-dev] [swift-evolution] Possible bug with arithmetic optional comparison ?

2016-05-25 Thread Yaman JAIOUCH via swift-dev
I'd like to pitch it out to swift-evolution but I'm not sure to fully understand the proposed solution of "disabling implicit promotion from T to T?" Does it mean that the following code won't work anymore? let a: Int? = nil let b: Int = 25 a < b // does not compile anymore If so, I'm not sure it

[swift-dev] Possible bug with arithmetic optional comparison ?

2016-05-24 Thread Yaman JAIOUCH via swift-dev
nil == 0 // false nil < 0 // true nil > 0 // false Is this a potential bug or an intended behavior ? ___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev