来自Swift的hello,world!

一觉醒来,所有的新闻媒体都充斥着Swift,不过这个Swift可不是那个女歌手Swift,而是apple在WWDC2014上刚刚发布的新编程语言:Swift

WWDC2014推出Swift编程语言

WWDC2014推出Swift编程语言

Swift是什么?

突然冒出一个新语言,这感觉…还是先来看看苹果怎么说:

Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.

是不是有一种不明觉厉的感觉!简单来说Swift是一个运行效率高、并且具有多种现代语言特性、可以和Objective-C一起使用的用来开发iOS和OS X应用的新语言。

继续阅读: