Skip to content
0:00 / 0:00

#kotlin#backingfields#kotlin2.3

Explicit Backing Fields in Kotlin 2.3 - What You Need to Know

Dave Leeds

16K subscribers • 19 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Dave Leeds

Intermediate. Assumes working knowledge.

4.7K views9 months ago1 recommendation

Programming languagesKotlinLanguage design and type systems

Dave Leeds explains the new explicit backing fields feature in Kotlin 2.3, how to use them, and potential pitfalls to avoid.

Kotlin 2.3 introduces a new, experimental "Explicit Backing Fields" feature, so that we can give our properties a different external type than internal type, but there's a major surprise you could run into if you don't know what to expect. In this video, I'll show you what Explicit Backing Fields are, when you'll want to use them, and what to look out for. ✨ New to Kotlin? Sign up for my free one-week Kotlin Starter course, which runs February 9-13: courses.typealias.com/kotlin-starter-course-signup 🚀 Newsletter: newsletter.typealias.com/ 📚 Chapters Explicit Backing Fields From Backing Properties to Backing Fields Keep in Mind... When to Use Them Kotlin Starter Course

Why it's here

1 person recommends this

What people say. Recommended as a clear explanation of Kotlin 2.3's new explicit backing fields feature and its gotchas.

u/TypeProjectionin r/Kotlin • Recommends

Explicit Backing Fields in Kotlin 2.3 - What You Need to Know