Avatar
プロポーザルこれか?チケットに紐付いてた https://forums.swift.org/t/matching-optionals-in-a-switch-statement/12905
I have two questions about matching optionals in a switch statement. Apparently an Int? can be matched against non-optional integer literals or non-optional integer expressions: let x: Int? = 1 switch x { case 1: print("one") case 1?: print("one?") case 1+2: print("one+two...
10:34 AM
いや承認プロセスとか無さそうだし違うのか