A NEW PRO­GRAM­MING LAN­GUAGE

HWM (Singapore) - - Think -

Years in the mak­ing, Swift is a new pro­gram­ming lan­guage for iOS and OS X apps. Sprout­ing mod­ern fea­tures, it’s de­signed to be fast, easy to learn, and fun to use. But that doesn’t mean Ob­jec­tive-C died a sud­den death. In fact, de­vel­op­ers can use both, since Swift code works side-by-side with Ob­jec­tive-C code in Xcode, Ap­ple’s pri­mary de­vel­op­ment tool.

More im­por­tantly, Swift is backed by the es­tab­lished Co­coa and Co­coa Touch frame­works, the same frame­works that cur­rent Ob­jec­tive-C-writ­ten apps ac­cess. This means there aren’t new frame­works to mas­ter, just one more way to use the same ones.

An­other su­per-cool fea­ture is Play­grounds, which lets de­vel­op­ers see the cod­ing re­sults im­me­di­ately, with­out the need to com­pile into an app first. If there’s one thing we don’t like about Swift, it’s that it isn’t an open stan­dard. For Ap­ple, that can only be a good thing be­cause it damp­ens de­vel­op­ers’ mo­ti­va­tion when they want to port their hit apps to other plat­forms.

Newspapers in English

Newspapers from Singapore

© PressReader. All rights reserved.