Back in Swift 5.9, if and switch were adjusted to work like expressions so you can assign their result directly to a variable. Clean and consistent, or hard to read? ๐ค https://www.hackingwithswift.com/swift/5.9/if-switch-expressions
Back in Swift 5.9, if and switch were adjusted to work like expressions so you can assign their result directly to a variable. Clean and consistent, or hard to read? ๐ค https://www.hackingwithswift.com/swift/5.9/if-switch-expressions
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/twostraws/statuses/116239335418198462 on your instance and quote it. (Note that quoting is not supported in Mastodon.)