twostraws / Unwrap

Learn Swift interactively on your iPhone.
https://www.hackingwithswift.com
Other
2.3k stars 312 forks source link

Replacing if let & guard let in Swift 5.7 #244

Closed byaruhaf closed 2 years ago

byaruhaf commented 2 years ago

This PR updates unwrapping to use the enhanced unwrapping syntax of Swift 5.7

twostraws commented 2 years ago

I'm happy to adjust the Unwrap source code, but not the course materials – for that to happen I need to redo the section on optionals, which is more work than just a PR.

byaruhaf commented 2 years ago

I have reverted the course materials changes, now the changes are only in the Unwrap source code

twostraws commented 2 years ago

Perfect – thank you!