Apple’s New Language “Swift”

swift-screenshot_2xApple has come up with a new programming language for iOS and OS X. It builds from the best of Objective-C and C and works right along the both languages. “Swift” also releases all the constraints of C compatibility and practices safe programming patterns. It also adds a modern feel and tons of features to make programming fun and easier. “Swift” is backed by Cocoa and Cocoa Touch frameworks and gives the programmer the opportunity to release the imagination.

Objective-C laid the foundation for “Swift” which has been years in the making. The foundation for “Swift” has been advanced by the existing compiler, debugger, and framework infrastructure. Automatic Reference Counting (ARC) has been used to simplify memory. Objective-C has evolved to support blocks, collection literals, and modules, enabling framework adoption of modern language of technologies without disruption. This list of improvements are endless. “Swift” introduces many new features and unifies the procedural and object-oriented portions of the language.

“Swift” is ambitious and essential in as well as expressive for creating iOS and OS X apps. New users will be able to learn “Swift” easily. With a lot of programs out there “Swift” will definitely impress and is a great entry-level to anyone. Kids especially, and anyone who wants to learn programming can watch it come together in a complete Playground environment.

It is designed to create the familiarly simple “hello, world” and is able to scale up to an entire operating system.

An example of its simplicity of writing a new program would be to print the words “Hello, world” on-screen. This can be done on a single line:

println(“Hello, world”)

In C or Objective-C this syntax would be incomplete without input/output or string handling or import a library for it to function. In “Swift” this code is a complete program. That’s right, the need for a main function is no longer needed. 

So if you ever wanted to write code, and there are many programs out there to start with, “Swift” is a perfect entry point to unleash an array(no pun) of programing creativity. It is a secure way to create apps and programs for iOS and OS X in a simple and fun way. Have fun and edit code in Playground.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s