Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > News > Tech News > New programming language 'Swift' for iOS, OS X announced during WWDC

New programming language 'Swift' for iOS, OS X announced during WWDC
Thread Tools
MacNN Staff
Join Date: Jul 2012
Status: Offline
Reply With Quote
Jun 2, 2014, 04:20 PM
To a loud roar of applause, Apple announced that it has developed a new coding language for iOS and OS X during the WWDC keynote. The language, called Swift, will allow for a simplified coding process that will continue to play with C and Objective-C languages in the same applications. Swift will also allow developers to make real-time changes in their programs, seeing the changes they make in the code show up in an active build with Xcode.

"We've used Objective-C for 20 years, and we love it. But we wondered what we could do without the baggage of C," said Craig Federighi during the keynote.

The new language marks a departure from a structure that Apple has been using, pushing to make the act of coding a simpler process. Swift is designed in a way that it is native to Cocoa and Cocoa touch. The code is said to be faster, marking up to 93 times faster in some applications over Objective-C. New features in the language include inferred types, unification of closures and function pointers, multiple return values, generics and functional programming patterns.

Swift has the possibility to replace Objective-C as the main coding language used in iOS and OS X apps. However, rather than pushing developers straight into a new language, Apple has said that Swift will work with both C and Objective-C in the same applications. This means that knowledge won't need to be replaced immediately, but rather implemented as developers pick up on the new code standard.

The ease of Swift is a large change for Apple software development, as the amount of coding required is being cut down. A more refined, simplified system of code will come into place with Swift, giving developers an easier time. Coding is set to become "safer and more reliable," since a large number of category errors can be removed. Variables will be introduced before use and syntax has been refined.

However, there is also a bonus to those who wish to learn development by doing code when paired with changes in Xcode. People will now be able to see their changes much faster, lessening the gap in learning. With the addition of Xcode Playgrounds, developers will be able to see their changes in real time, no longer having to wait for long test builds to see the results. This will aid with finding problems in code structures, loops and failures in closing off lines.

During the presentation, Federighi said that Swift apps would be available from day one, leaving no reason for developers to wait and see how the language pans out. Those wishing to look into Swift can download a book from Apple on the language on iTunes. A beta version of Xcode with Swift is available now.
( Last edited by NewsPoster; Jun 16, 2014 at 05:40 AM. )
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 01:12 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2