Inline Value Classes in Kotlin: Zero-Cost Abstractions That Feel Like Magic

Kotlin’s inline value classes let you wrap primitive values in meaningful types without paying the runtime cost of objects.