码迷,mamicode.com
首页 > 编程语言 > 详细

The features of Swift

时间:2018-05-07 21:08:23      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:range   prot   function   generic   fas   keyword   protoc   signed   The   

The features of Swift are designed to work together to create a language that is powerful, yet fun to use. Some additional features of Swift include:

  • Closures unified with function pointers
  • Tuples and multiple return values
  • Generics
  • Fast and concise iteration over a range or collection
  • Structs that support methods, extensions, and protocols
  • Functional programming patterns, e.g., map and filter
  • Powerful error handling built-in
  • Advanced control flow with do, guard, defer, and repeat keywords

The features of Swift

标签:range   prot   function   generic   fas   keyword   protoc   signed   The   

原文地址:https://www.cnblogs.com/feng9exe/p/9004625.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!