>>9The old language is still there, and is still
going to be there for a long time. The new language is designed around the same APIs that you'd be using in the old one; you're still instantiating the same classes, calling the same methods, and so on. That knowledge isn't obsolete. However, the design of Objective-C requires you to write a lot of boilerplate code, and the new language puts most of that "under the hood" so you can focus on your application logic.
>>10let size = (20, 40)
switch size {
case let (width, height) where width == height:
println("square with sides \(width)")
case (1..10, 1..10):
println("small rectangle")
case let (width, height):
println("rectangle with width \(width) and height \(height)")
}
More here:
https://developer.apple.com/swift/