Avatar
norio_nomura 6/29/2017 3:00 AM
func decode<T: Decodable>() throws -> T { switch T.self { case is Bool.Type: return try decode(Bool.self) as! T case is Int.Type: return try decode(Int.self) as! T … このswitch文って、最適化で消えたりするのかな? (edited)