Hello, Inline class - A must-know Kotlin feature!

Опубликовано: 15 Март 2025
на канале: All Techies
482
15

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