Avatar
[swift-evolution] Obsoleting if let
2:45 AM
> Data point (which Chris brought up already, I think?): We tried this* and got a lot of negative feedback. Optionals are unwrapped too often for people to be comfortable writing "if let name? = optionalCondition”. Yes, I even implemented this and it was in the compiler for awhile, then later ripped it back out. You can find the history in git. I would guess that this all happened in ~March 2015. -Chris
2:46 AM
昔は if let name? = hoge という書式が書けたけど
2:46 AM
取り除いたよ ギットの歴史で2015年以前にあるよ クリス
2:47 AM
この話はあくまで if let とパターンマッチの並用であって、 if case let は別の話っぽいですね。