pdegand
04/06/2020, 8:25 AMclass UserId { String userId; }
), this is a perfect usecase for Inline classes !
In the documentation, it’s noted that primitive types are usually heavily optimized by the runtime, while their wrappers don't get any special treatment.
Do you have any concrete examples of the kind of optimizations you lose when using wrapper class instead of the primitive type (or the Inline class in KT) ?David Eriksson
04/06/2020, 2:47 PMpdegand
04/06/2020, 3:53 PM