Skip to content
0:00 / 0:00

#kotlin#contextreceivers

Context Receivers Are Coming to Kotlin!

Kotlin by JetBrains

100K subscribers • 61 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Sebastian, Developer Advocate at JetBrains
  • Made by the vendor. The company whose product it covers made or sponsored it.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

38K views4 years ago1 recommendation

Programming languagesKotlinLanguage design and type systems

Sebastian explains how context receivers work in Kotlin 1.6.20 to elegantly constrain functions to specific contexts.

Kotlin 1.6.20 comes with a new toy: Context Receivers. You can use them to elegantly constrain functions (and more!) to a specific context from which they can be called. Sebastian (twitter.com/sebi_io) helps you figure out what exactly that means: Get a refresher on “receivers” in Kotlin, set yourself up to use the context receivers prototype in your own project, and get all the details about how context receivers work and how they can be used. #ContextReceivers #Kotlin #Programming #Development

Why it's here

1 person recommends this

What people say. Recommended as an introduction to the prototype context receivers feature in Kotlin.

u/Anisim_1Kotlin teamin r/Kotlin • Recommends

Kotlin 1.6.20+ comes with a new toy: a prototype for the "Context Receivers" proposal! 🧪 They are powerful stuff: you can constrain functions & co. to a specific context from which you can call them. Check out Sebastian's video and try them yourself! 👀