<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>value-classes on Carrion.dev</title><link>https://carrion.dev/en/tags/value-classes/</link><description>Recent content in value-classes on Carrion.dev</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>ignacio@carrion.dev (Ignacio Carrión)</managingEditor><webMaster>ignacio@carrion.dev (Ignacio Carrión)</webMaster><copyright>&amp;copy;{year}, All Rights Reserved</copyright><lastBuildDate>Fri, 24 Oct 2025 08:00:00 +0100</lastBuildDate><atom:link href="https://carrion.dev/en/tags/value-classes/index.xml" rel="self" type="application/rss+xml"/><item><title>Zero-Cost Abstractions in Kotlin: Inline Functions and Value Classes</title><link>https://carrion.dev/en/posts/kotlin-inline-functions-value-classes/</link><pubDate>Fri, 24 Oct 2025 08:00:00 +0100</pubDate><author>ignacio@carrion.dev (Ignacio Carrión)</author><atom:modified>Fri, 24 Oct 2025 08:00:00 +0100</atom:modified><guid>https://carrion.dev/en/posts/kotlin-inline-functions-value-classes/</guid><description>Zero-Cost Abstractions in Kotlin: Inline Functions and Value Classes Kotlin gives you two powerful tools to write safer and faster code with zero or near-zero runtime overhead: inline functions and value classes. Used correctly, they help you avoid allocations, improve type safety, and keep APIs expressive.
This post explains what they are, how they work under the hood, practical use cases, trade-offs, and when not to use them.
TL;DR Inline functions remove call-site overhead for small higher-order utilities and enable reified type parameters.</description><dc:creator>Ignacio Carrión</dc:creator><media:content url="https://carrion.dev/images/kotlin/inline.png" medium="image"><media:title type="html">featured image</media:title></media:content><category>kotlin</category><category>inline</category><category>value-classes</category><category>performance</category><category>generics</category></item></channel></rss>