“A value type is a type that is copied when it is assigned to a variable or constant, or when it is passed to a function.
You’ve actually been using value types extensively throughout the previous chapters. In fact, all of the basic types in Swift—integers, floating-point numbers, Booleans, strings, arrays and dictionaries—are value types, and are implemented as structures behind the scenes.”
Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks.
https://itun.es/cn/jEUH0.lSwift—integers, floating-point numbers, Booleans, strings, arrays and dictionaries 这些都是值类型...