53

GitHub - twostraws/whats-new-in-swift-4-2: An Xcode playground that demonstrates...

 5 years ago
source link: https://github.com/twostraws/whats-new-in-swift-4-2
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

What’s new in Swift 4.2?

This is an Xcode playground that demonstrates the new features introduced in Swift 4.2:

  • Derived collections of enum cases
  • Warning and error diagnostic directives
  • Dynamic member look up
  • Enhanced conditional conformances
  • Random number generation and shuffling
  • Simpler, more secure hashing
  • Checking sequence elements match a condition
  • In-place collection element removal
  • Boolean toggling

This is designed to complement my existing article What’s New in Swift 4.2. You might also want to check out What's New in Swift 4.1 and its accompanying playground. Alternatively, I have a whole website dedicated to tracking what's new in Swift – you should check it out at https://www.whatsnewinswift.com.

If you hit problems or have questions, you're welcome to tweet me @twostraws or email [email protected].

Note: Until a version of Xcode ships with Swift 4.2, you should download the latest Swift trunk development snapshot and activate it inside your current Xcode version.

Screenshot of Xcode 9.3 running this playground.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK