flâneur — a map of the web's best reading

Swift: From Protocol to AssociatedType then Type Erasure | Welcome to Monstarlab’s Engineering Blog

engineering.monstar-lab.com · 2,279 words · saved by 1 readers

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

Explore this link on the map →

saved by

related reading