Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I don't want to be a programmer anymore

Name: Anonymous 2014-06-02 17:09

Name: Anonymous 2014-06-02 21:01

>>9
The 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.

>>10
let 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/

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List