if let
> 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
if let name? = hoge
という書式が書けたけどif let
とパターンマッチの並用であって、 if case let
は別の話っぽいですね。