![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Learning Swift
文章平均质量分 79
superloi
这个作者很懒,什么都没留下…
展开
-
Swift Basic - 一些 Swift 基础中的基础
1 - Kye Points 要点PlaygroundType inference 类型推断Swift is a statically typed language with compile-time checking of types Swift是静态类型语言,在编译时做类型检查比如新建playground,并输入下列代码:var str = "Hello, play原创 2015-01-11 13:18:59 · 549 阅读 · 0 评论 -
Swift Basic: Optionals,Collection - 再来点 Swift 基础知识
1 - OptionalsOptionals的设计初衷,应该是体会到了各种dreaded null pointer。Swift isn't letting you use an uninitialized variable at compile time. 但如果真的需要使用一个nil值,那就可以使用optional。Optionals are a way of wrapping up the原创 2015-01-11 15:33:43 · 829 阅读 · 0 评论 -
关于泛型Generics
Introducing genericsYou might not know it, but you’ve already seen generics at work while reading thisbook. Arrays and dictionaries are classic examples of the type safety of generics inaction.O翻译 2015-01-15 11:52:20 · 407 阅读 · 0 评论