Swift: From Protocol to AssociatedType then Type Erasure | Welcome to Monstarlab’s Engineering Blog
When Swift was made, it had been the first protocol-oriented programming language. Though Swift is great for object-oriented programming, but from the way for-loops and String literals work to the emp
Swift: From Protocol to AssociatedType then Type Erasure | Welcome to Monstarlab’s Engineering Blog Swift: From Protocol to AssociatedType then Type Erasure December 21, 2021 When Swift was made, it had been the first protocol-oriented programming language. Though Swift is great for object-oriented programming, but from the way for-loops and String literals work to the emphasis in the standard library on generics , at its heart, Swift is protocol-oriented. Motivation We use classes to represent a symmetric operation, like Comparison, for example, if we want to write a generalized sort or binar
saved by
related reading
- Swift Protocol 背后的故事(Swift 5.6/5.7) | 雪峰的blogzxfcumtcs.github.io
- Structs, Classes, and Actors in iOS Interviewsholyswift.app
- Swift 5.7 中的 any 和 some (译)segmentfault.com
- @StateObject 和 @ObservedObject 的区别和使用 | OneV's Denonevcat.com
- iOS的CoreData技术详解为什么写这篇文章 最近因为新项目想用到数据持久化,本来这是很简单的事情,复杂数据一般直接 - 掘金juejin.cn
- Getting started with associated types in Swift Protocols - SwiftLeeavanderlee.com
- Building a menu using List - a free SwiftUI by Example tutorialhackingwithswift.com
- TypeScript Structured Concurrencythecandidstartup.org
- SwiftUI by Example - free quick start tutorials for Swift developershackingwithswift.com
- Destroy All Values: Designing Deinitialization in Programming Languages - Faultloregankra.github.io
- The sad state of property-based testing librariesstevana.github.io
- Swift Macros: Understanding Freestanding & Attached Macros - QuickBird Studiosquickbirdstudios.com