antranapp / blog

AnTran.App: #Swift #Kotlin #MachineLearning #Minimalism
https://antran.app
MIT License
0 stars 0 forks source link

iOS Interview - Understanding Dynamic Dispatch and Static Dispatch in Swift | An Tran #12

Open utterances-bot opened 5 months ago

utterances-bot commented 5 months ago

iOS Interview - Understanding Dynamic Dispatch and Static Dispatch in Swift | An Tran

Understanding how Swift Compiler optimises applications for speed of execution

https://antran.app/2024/dynamic_static_dispatch/?utm_source=swiftlee&utm_medium=swiftlee_weekly&utm_campaign=issue_214

grennis commented 5 months ago

I think it gets interesting with protocols with extension functions? And extensions that provide default implementations?

chienpm304 commented 5 months ago

agreed with @grennis above, add an method in the extension of the protocol make thing much clear