---
title: "Discussion on \"Toying with Kotlin's context receivers\" | Hashnode"
description: "Discussion on \"Toying with Kotlin's context receivers\". Kotlin added the idea of Context Receivers in version 1.6.20. In this post, I'd like to toy with them to understand how useful they can be.\nNote that if you want to play along, you'll need to compile with the -Xcontext-receivers flag.\nThe main idea b..."
url: "https://hashnode.com/posts/toying-with-kotlins-context-receivers/6282032cbc9305ec39366942"
---

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

Discussion

# [Toying with Kotlin's context receivers](https://frankel.hashnode.dev/toying-with-kotlins-context-receivers?utm_source=hashnode&utm_medium=feed)

Kotlin added the idea of Context Receivers in version 1.6.20. In this post, I'd like to toy with them to understand how useful they can be. Note that if you want to play along, you'll need to compile with the -Xcontext-receivers flag. The main idea b...

May 16, 2022 · 5 min read · frankel.hashnode.dev  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#experience](https://hashnode.com/tag/experience)

## Written by

[Nicolas Fränkel](https://hashnode.com/@nfrankel)

@nfrankel · Geneva

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

Developer Advocate

Technologist focusing on cloud-native technologies, DevOps, CI/CD pipelines, and system observability. His focus revolves around creating technical content, delivering talks, and engaging with developer communities to promote the adoption of modern software practices. With a strong background in software, he has worked extensively with the JVM, applying his expertise across various industries. In addition to his technical work, he is the author of several books and regularly shares insights through his blog and open-source contributions.

## Responses 1

Markdown supported · ⌘↵ to post

[Rohit Jakhar](https://hashnode.com/@rohitjakhar)

[May 16, 2022](https://hashnode.com/posts/toying-with-kotlins-context-receivers/6282032cbc9305ec39366942/comment/6282465f504da209d8555a7e)

I read this article on your blog site today and it is very useful.

[Nicolas Fränkel](https://hashnode.com/@nfrankel)

[May 17, 2022](https://hashnode.com/posts/toying-with-kotlins-context-receivers/6282032cbc9305ec39366942/comment/6282465f504da209d8555a7e#reply-62835132504da209d85574e3)

Thanks a lot!
