On 16.05.2016 18:06, Patrick Smith via swift-evolution wrote:
let foo: [Double] = Double[int32, int8, double, cgfloat, float] // As if you had written Double(…) around each item
I really like this suggestion. Actually IMO we don't need explicit type declaration here:
// clearly it is an array of Double let foo = Double[int32, int8, double, cgfloat, float] We can use the same feature for other types like let foo = String[1, 1.0, true] Or even some complex type: let foo = ComplexType[1, 1.0, true] But I really don't like this: //let foo: [Double] = [int32, int8, double, cgfloat, float](Double.init) _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
