Skip to content

Swift Tips

toant-dev edited this page Sep 16, 2021 · 1 revision

Generics vs. Any

Generics and Any are often used for similar purposes, yet they behave very differently. In languages without generics, you typically use a combination of Any and runtime programming, whereas generics are statically checked at compile time.

Clone this wiki locally