When you create a wrapper around some type it introduces runtime overhead due to additional heap allocations especially if the wrapped type is primitive, the performance hit is terrible.
To overcome such issues Kotlin introduced an inline class which is a subset of value-based classes that means it can only hold values.
Want to join the android club on Facebook?
/ androiddevelopersclub
#android #kotlin #androiddev