---
title: "Discussion on \"Why Kotlin's Better Types Matter a Lot\" | Hashnode"
description: "Discussion on \"Why Kotlin's Better Types Matter a Lot\". Data classes and inline classes are a game changer for clean code"
url: "https://hashnode.com/posts/why-kotlins-better-types-matter-a-lot/616ca3fa441bd36daa9574e4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Kotlin's Better Types Matter a Lot](https://blog.oscarablinger.dev/why-kotlins-better-types-matter-a-lot?utm_source=hashnode&utm_medium=feed)

Data classes and inline classes are a game changer for clean code

Oct 17, 2021 · 4 min read · blog.oscarablinger.dev  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#java](https://hashnode.com/tag/java)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[Oscar Ablinger](https://hashnode.com/@OscarAblinger)

@OscarAblinger

  
[View profile](https://hashnode.com/@OscarAblinger)

## Responses 1

Markdown supported · ⌘↵ to post

[Vincent Tsen](https://hashnode.com/@vtsen)

[Oct 20, 2021](https://hashnode.com/posts/why-kotlins-better-types-matter-a-lot/616ca3fa441bd36daa9574e4/comment/616f81eef1f4c944cc6b5b95)

Thanks for the article. Personally I haven't used inline yet. Probably because I haven't found any real use case.

[Oscar Ablinger](https://hashnode.com/@OscarAblinger)

[Oct 25, 2021](https://hashnode.com/posts/why-kotlins-better-types-matter-a-lot/616ca3fa441bd36daa9574e4/comment/616f81eef1f4c944cc6b5b95#reply-6176738c0f452c1cd94fc88f)

Yeah, the use cases are definitely rare, but I find it super fitting for Tiny Types. But in any way it's only really performance improvements, which is probably rare to have to care about nowadays ^^
