WBF Academy

Generics, Reified Types & Value Classes

⏱ 14:00 1 month ago

Explore Kotlin generics beyond the basics, including variance (in/out), type projections, and star projections. Learn how reified type parameters eliminate the need for Class<T> arguments by preserving type info at runtime via inline functions. Discover value classes and how they wrap a single property with zero overhead at runtime. By the end, you'll write type-safe, allocation-efficient abstractions used in production Kotlin libraries.

#kotlin #generics #reified #value-classes #inline