Chris Lattner (via Erica Sadun): The semantic model of swift generics is that they use runtime dispatch through “witness tables” provided by the protocol conformances of the generic types. This model allows for fast -O0 compiles and separate compilation of generics.The problem with this model is that actually relying on this for everything would produce … Continue reading How Swift Implements Generics
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed