Swift Tips - toant-dev/toandev.github.io GitHub Wiki

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.