Apple worked four years on Swift with goal to make programming “more approachable and fun”

swift-screenshotApple used its WWDC 2014 keynote to introduce Swift, a new programming language for iOS and OS X. Following its unveiling, the news was greeted with a round of cheers by the developers in the audience. As noted by TechCrunch, Swift is a major undertaking for Apple, which has been working on the language for four years. Apple released an iBook introducing developers to Swift with explanations of the basic operation of the language along with code examples. Chris Lattner, head of Apple’s Developer Tools department, added some additional details on the development of the project, which began in earnest in 2010 with a small group dedicated to the endeavor.

The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list. The Xcode Playgrounds feature and REPL were a personal passion of mine, to make programming more interactive and approachable. The Xcode and LLDB teams have done a phenomenal job turning crazy ideas into something truly great. Playgrounds were heavily influenced by Bret Victor’s ideas, by Light Table and by many other interactive systems.

A team of coders began working on the project in 2011, and it remained a small affair until last year when the Swift project became the main focus of Lattner’s developer tools team. Swift, Lattner claims, is designed to be “concise yet expressive,” making it easier for developers to learn and adopt the language.

I hope that by making programming more approachable and fun, we’ll appeal to the next generation of programmers and to help redefine how Computer Science is taught.

When designing the syntax and structure of the language, Lattner’s team looked to Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and other languages.

Are you interested in iOS programming now that Swift promises to make it easier to learn?


Like this post? Share it!

Categories: Apple News, iOS 8, OS X 10.10

  • md6597

    Yes, absolutely.

  • Babou

    I asked this question many times but i didnt get answer yet
    From now people like me should stop the Objec-C they started learning and being with Swift now or i should continue objec-c

    • Nikola C

      you should continue learning objective-c, swift can’t completely replace it, they will just co-exist.

    • Pacomacman

      If you want to write real programs learn a real language and stick with Objectice C/C++. Swift is nothing more than a glorified scripting language which I’m sure might prove a useful tool but it won’t replace the power of Objective C

    • Benjohn Barnes

      You should probably learn both, and if you don’t have time for that, just learn Swift.

      The comments below about swift not having “power” or being a “glorified scripting language” seem terribly ill informed.

      Swift’s future (and our future with it) depends a great deal on how hard Apple will push it. If they push it as hard as they have pushed Objective C, and I see no reason why they won’t, then it’s absolutely going to be the one to learn. They’ve not developed it for the odd bit of scripting here and there. They’ve developed it as their system language going forward.