

It eliminates entire classes of unsafe code to prevent overflows, while simpler three-character keywords define a variable or constant. For the past few decades, developers have programmed Mac OS X and iOS apps in Objective-C, so this could herald the beginning of a new era of app development.įederighi said that Swift is fast, modern, and like "Objective-C without the C." During the keynote, Federighi showed several slides demonstrating Apple's claimed performance boosts for common programming tasks over their equivalents in both Python and Objective-C.Īccording to Apple's developer notes, Swift can replace entire lines of code with a single character, while named parameters brought forward from Objective-C are "expressed in a clean syntax" that makes APIs in Swift easier to read and maintain. Swift works on its own or side by side with the object-oriented language Objective-C, which dates back to the 1980s and first debuted on NeXT hardware. In a surprise announcement during today's WWDC keynote, Apple senior vice president of software engineering, Craig Federighi, unveiled Swift, a new programming language for coding Mac OS X and iOS applications in Cocoa and Cocoa Touch. How to Set Up Two-Factor Authentication.How to Record the Screen on Your Windows PC or Mac.How to Convert YouTube Videos to MP3 Files.How to Save Money on Your Cell Phone Bill.

How to Free Up Space on Your iPhone or iPad.How to Block Robotexts and Spam Messages.
