?️ 2025 Edition 8-9 April, Turin: https://swiftheroes.com/2025/tickets/
⏩ Chapter:
00:00 Intro
02:17 Typestate
05:27 Practical example
10:21 Testing
15:02 Compilation Error
21:23 Context-aware APIs
23:01 Aliasing - Borrow Checker
27:27 Consume self
31:53 Compile time
34:33 Recap & Article
Typestate Design Pattern is revolutionizing the way we write Swift 5.9 code! ? In this video, we dive deep into how Typestate, inspired by Rust, introduces compile-time safety for state machines, making your code safer and more efficient.
Discover the power of Swift 5.9's Noncopyable types and consuming functions, ensuring strict memory ownership and eliminating runtime errors. We'll walk you through practical examples, like a Tesla car's real-world use case, to show Typestate's impact on mission-critical systems.
Learn about the new generic constraints that enforce state-specific operations at the type level, helping you avoid runtime guard checks. Whether you're working on resource management, state machines, or high-stakes systems, this talk equips you with actionable insights to leverage Typestate and transform your development process.
? ALEX OZUN, Software Engineer
?Swift Heroes 2024 was hosted in Turin, 18-19 April. Attended by 400 iOS developer participants and broadcast to an additional 200 Swift enthusiasts across the globe. The agenda covered a range of important iOS developer topics including SwiftUI, the composable architecture, accessibility, developer tools, testing and much more.
All the other talks are coming out, don't miss them...
? For more engaging content and expert insights, subscribe to our channel and hit the notification bell. ?️
Inform: https://swiftheroes.com/
✅ Tweet: https://twitter.com/swiftheroes_it
✅ Connect: https://www.linkedin.com/showcase/swift-heroes/
✅ Read: https://telegram.me/swiftheroes
#SwiftHeroes #Swift5 #SwiftDevelopment #Typestate #ProgrammingTips #SwiftHeroes #iOSDevelopers #StateManagement #CodeSafety #RustInspired #SwiftPatterns