Swift Macros, Implicit Returns & Explicit Lifetime Management | What’s New in Swift 5.9 |

  Переглядів 5,057

The Swift Bird

The Swift Bird

День тому

Swift 5.9 is out, and it ships two big things-macros and explicit lifetime management-and many small improvements. In this video, I’m highlighting my favorites.
In general, this release of Swift is among the most significant ones-probably the biggest since Swift 4 in 2017. But none of the changes will disrupt your routine, so it’s easy to not even notice them.
Here’s my overview of the next version, Swift 5.10: • What’s New in Swift 5....
You can support me by…
• …buying me a coffee: www.buymeacoffee.com/SwiftBird
• …becoming a patron: / swiftbird
Links:
• Swift changelog: github.com/apple/swift/blob/m...
• Vision behind macros: github.com/apple/swift-evolut...
• Macros: github.com/apple/swift-evolut...
• Attached macros: github.com/apple/swift-evolut...
• Freestanding macros: github.com/apple/swift-evolut...
• if and switch expressions: github.com/apple/swift-evolut...
• consume operator: github.com/apple/swift-evolut...
• borrowing and consuming parameter modifiers: github.com/apple/swift-evolut...
Chapters:
• 0:00 Intro
• 0:37 Swift Macros
• 2:39 if and switch Expressions / Implicit Returns
• 3:48 Explicit Lifetime Management
• 5:25 Final Thoughts
• 5:53 Outro
The Swift Bird is produced by / yakovmanshin .
#Swift #softwareengineering #softwaredevelopment

КОМЕНТАРІ: 11
@ryansobol
@ryansobol Місяць тому
Thanks for the simple and clear explanations!
@SwiftBird
@SwiftBird Місяць тому
Glad it was helpful!
@ivanshevy
@ivanshevy 6 місяців тому
Good luck!
@Patrick462
@Patrick462 7 місяців тому
Thanks! I don't like the implicit returns nor the explicit lifetime management, but the macros will be powerful. Good explanations!
@SwiftBird
@SwiftBird 7 місяців тому
Thank you! I’m currently working on the “macros deep dive” video. It’ll be out in the coming days-hopefully 🤞🏻
@mohamedyusuf6062
@mohamedyusuf6062 4 місяці тому
Hey, are all previous swift features lost where produce new once. thank you.
@SwiftBird
@SwiftBird 4 місяці тому
Hi! No, of course not. Minor Swift versions (5.8, 5.9, etc.) don’t remove any previously-added features, though they can change the way those features work. But normally, you can use everything from every previous release.
@austinsiu2351
@austinsiu2351 5 місяців тому
Swift has a beginner friendly learning curve, but the curve extends infinitely just to learn all the features
@SwiftBird
@SwiftBird 5 місяців тому
You’re right! But also, you don’t need to know *every* feature to be proficient. I like Swift because you can learn new tricks (and forget the old ones) as your tasks change-and still feel confident regardless. For example, I learned about the for-case-let-in loops just a week ago, and though they look clever and make the code shorter (e.g. you can run the loop’s body on just the non-optional elements), they’re such a nuanced feature it’s not worth the cognitive burden, IMO. I was totally fine not knowing about them for the past six years 😅
@AnnasVirtual
@AnnasVirtual 3 місяці тому
you look like dantdm
@SwiftBird
@SwiftBird 3 місяці тому
Interesting comparison, thanks!
The Good, the Bad & the Greedy | What’s New in Xcode 15 | @SwiftBird
6:16
Swift 5.9 Released | Prime Reacts
14:36
ThePrimeTime
Переглядів 59 тис.
🔥 Україна виходить у ФІНАЛ ЄВРОБАЧЕННЯ-2024! Реакція alyona alyona та Jerry Heil #eurovision2024
00:10
Євробачення Україна | Eurovision Ukraine official
Переглядів 238 тис.
Can Swift Replace Bash (for Scripting)? | @SwiftBird
20:18
The Swift Bird
Переглядів 1,8 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
Your Brain 🧠 on Swift Concurrency - iOS Conf SG 2023
30:38
iOS Conf SG
Переглядів 7 тис.
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Lex Clips
Переглядів 146 тис.
Python vs Swift | Prime Reacts
19:44
ThePrimeTime
Переглядів 65 тис.
What I Want to See in Swift in 2024 (But Probably Wouldn’t) | @SwiftBird
12:27
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Переглядів 629 тис.
Игровой ноутбук за 100тр в МВИДЕО
0:58
KOLBIN REVIEW
Переглядів 461 тис.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24