Swift: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"
export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"
</source>
</source>
==Features==
# 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


==References==
==References==

Revision as of 22:51, 6 April 2019

export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"

Features

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

References