iGodric iGodric - 1 year ago 138
Swift Question

For what is the new keyword?

I read the

The Swift Programming Language
In the keywords section they listed
. But in the section
Summary of the Grammar
I didn't found it.

For what is
used in Swift?

Answer Source

It seems to have been removed.

I tried let x = new Double[2] but in Xcode 7 it now throws an error

Playground execution failed: OSX.playground:1:9: error: use of unresolved identifier 'new' let a = new [Double]

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download