In a series of posts aimed at C++ practitioners, the author offers a unique and thoughtful approach to learning Swift. By mapping C++ idioms and patterns onto Swift, readers are guided through the similarities and differences between the two languages. Highlighting Swift’s magic elements like type-checked generics and value types, the author also addresses controversial topics like immutability and aliasing. Through detailed examples and explanations, readers are encouraged to embrace Swift’s design choices while navigating potential pitfalls. This comprehensive series promises to not only teach Swift but also how to use it effectively, making it invaluable for C++ programmers looking to expand their language repertoire.
https://www.douggregor.net/posts/swift-for-cxx-practitioners-value-types/